.. | .. |
---|
56 | 56 | return nbytes; |
---|
57 | 57 | } |
---|
58 | 58 | |
---|
59 | | -static const struct file_operations proc_bus_zorro_operations = { |
---|
60 | | - .owner = THIS_MODULE, |
---|
61 | | - .llseek = proc_bus_zorro_lseek, |
---|
62 | | - .read = proc_bus_zorro_read, |
---|
| 59 | +static const struct proc_ops bus_zorro_proc_ops = { |
---|
| 60 | + .proc_lseek = proc_bus_zorro_lseek, |
---|
| 61 | + .proc_read = proc_bus_zorro_read, |
---|
63 | 62 | }; |
---|
64 | 63 | |
---|
65 | 64 | static void * zorro_seq_start(struct seq_file *m, loff_t *pos) |
---|
.. | .. |
---|
105 | 104 | |
---|
106 | 105 | sprintf(name, "%02x", slot); |
---|
107 | 106 | entry = proc_create_data(name, 0, proc_bus_zorro_dir, |
---|
108 | | - &proc_bus_zorro_operations, |
---|
| 107 | + &bus_zorro_proc_ops, |
---|
109 | 108 | &zorro_autocon[slot]); |
---|
110 | 109 | if (!entry) |
---|
111 | 110 | return -ENOMEM; |
---|