| .. | .. |
|---|
| 26 | 26 | bootinfo_size); |
|---|
| 27 | 27 | } |
|---|
| 28 | 28 | |
|---|
| 29 | | -static const struct file_operations bootinfo_fops = { |
|---|
| 30 | | - .read = bootinfo_read, |
|---|
| 31 | | - .llseek = default_llseek, |
|---|
| 29 | +static const struct proc_ops bootinfo_proc_ops = { |
|---|
| 30 | + .proc_read = bootinfo_read, |
|---|
| 31 | + .proc_lseek = default_llseek, |
|---|
| 32 | 32 | }; |
|---|
| 33 | 33 | |
|---|
| 34 | 34 | void __init save_bootinfo(const struct bi_record *bi) |
|---|
| .. | .. |
|---|
| 67 | 67 | if (!bootinfo_copy) |
|---|
| 68 | 68 | return -ENOMEM; |
|---|
| 69 | 69 | |
|---|
| 70 | | - pde = proc_create_data("bootinfo", 0400, NULL, &bootinfo_fops, NULL); |
|---|
| 70 | + pde = proc_create_data("bootinfo", 0400, NULL, &bootinfo_proc_ops, NULL); |
|---|
| 71 | 71 | if (!pde) { |
|---|
| 72 | 72 | kfree(bootinfo_copy); |
|---|
| 73 | 73 | return -ENOMEM; |
|---|