diff options
Diffstat (limited to 'drivers/pnp/isapnp/proc.c')
-rw-r--r-- | drivers/pnp/isapnp/proc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/pnp/isapnp/proc.c b/drivers/pnp/isapnp/proc.c index e1d1f2a10947..3f94edab25fa 100644 --- a/drivers/pnp/isapnp/proc.c +++ b/drivers/pnp/isapnp/proc.c | |||
@@ -85,6 +85,7 @@ static ssize_t isapnp_proc_bus_read(struct file *file, char __user * buf, | |||
85 | } | 85 | } |
86 | 86 | ||
87 | static const struct file_operations isapnp_proc_bus_file_operations = { | 87 | static const struct file_operations isapnp_proc_bus_file_operations = { |
88 | .owner = THIS_MODULE, | ||
88 | .llseek = isapnp_proc_bus_lseek, | 89 | .llseek = isapnp_proc_bus_lseek, |
89 | .read = isapnp_proc_bus_read, | 90 | .read = isapnp_proc_bus_read, |
90 | }; | 91 | }; |
@@ -102,12 +103,10 @@ static int isapnp_proc_attach_device(struct pnp_dev *dev) | |||
102 | return -ENOMEM; | 103 | return -ENOMEM; |
103 | } | 104 | } |
104 | sprintf(name, "%02x", dev->number); | 105 | sprintf(name, "%02x", dev->number); |
105 | e = dev->procent = create_proc_entry(name, S_IFREG | S_IRUGO, de); | 106 | e = dev->procent = proc_create_data(name, S_IFREG | S_IRUGO, de, |
107 | &isapnp_proc_bus_file_operations, dev); | ||
106 | if (!e) | 108 | if (!e) |
107 | return -ENOMEM; | 109 | return -ENOMEM; |
108 | e->proc_fops = &isapnp_proc_bus_file_operations; | ||
109 | e->owner = THIS_MODULE; | ||
110 | e->data = dev; | ||
111 | e->size = 256; | 110 | e->size = 256; |
112 | return 0; | 111 | return 0; |
113 | } | 112 | } |