diff options
Diffstat (limited to 'drivers/s390/block/dasd_proc.c')
-rw-r--r-- | drivers/s390/block/dasd_proc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/s390/block/dasd_proc.c b/drivers/s390/block/dasd_proc.c index 556063e8f7a9..03c0e40a92ff 100644 --- a/drivers/s390/block/dasd_proc.c +++ b/drivers/s390/block/dasd_proc.c | |||
@@ -157,6 +157,7 @@ static int dasd_devices_open(struct inode *inode, struct file *file) | |||
157 | } | 157 | } |
158 | 158 | ||
159 | static const struct file_operations dasd_devices_file_ops = { | 159 | static const struct file_operations dasd_devices_file_ops = { |
160 | .owner = THIS_MODULE, | ||
160 | .open = dasd_devices_open, | 161 | .open = dasd_devices_open, |
161 | .read = seq_read, | 162 | .read = seq_read, |
162 | .llseek = seq_lseek, | 163 | .llseek = seq_lseek, |
@@ -311,17 +312,16 @@ out_error: | |||
311 | int | 312 | int |
312 | dasd_proc_init(void) | 313 | dasd_proc_init(void) |
313 | { | 314 | { |
314 | dasd_proc_root_entry = proc_mkdir("dasd", &proc_root); | 315 | dasd_proc_root_entry = proc_mkdir("dasd", NULL); |
315 | if (!dasd_proc_root_entry) | 316 | if (!dasd_proc_root_entry) |
316 | goto out_nodasd; | 317 | goto out_nodasd; |
317 | dasd_proc_root_entry->owner = THIS_MODULE; | 318 | dasd_proc_root_entry->owner = THIS_MODULE; |
318 | dasd_devices_entry = create_proc_entry("devices", | 319 | dasd_devices_entry = proc_create("devices", |
319 | S_IFREG | S_IRUGO | S_IWUSR, | 320 | S_IFREG | S_IRUGO | S_IWUSR, |
320 | dasd_proc_root_entry); | 321 | dasd_proc_root_entry, |
322 | &dasd_devices_file_ops); | ||
321 | if (!dasd_devices_entry) | 323 | if (!dasd_devices_entry) |
322 | goto out_nodevices; | 324 | goto out_nodevices; |
323 | dasd_devices_entry->proc_fops = &dasd_devices_file_ops; | ||
324 | dasd_devices_entry->owner = THIS_MODULE; | ||
325 | dasd_statistics_entry = create_proc_entry("statistics", | 325 | dasd_statistics_entry = create_proc_entry("statistics", |
326 | S_IFREG | S_IRUGO | S_IWUSR, | 326 | S_IFREG | S_IRUGO | S_IWUSR, |
327 | dasd_proc_root_entry); | 327 | dasd_proc_root_entry); |
@@ -335,7 +335,7 @@ dasd_proc_init(void) | |||
335 | out_nostatistics: | 335 | out_nostatistics: |
336 | remove_proc_entry("devices", dasd_proc_root_entry); | 336 | remove_proc_entry("devices", dasd_proc_root_entry); |
337 | out_nodevices: | 337 | out_nodevices: |
338 | remove_proc_entry("dasd", &proc_root); | 338 | remove_proc_entry("dasd", NULL); |
339 | out_nodasd: | 339 | out_nodasd: |
340 | return -ENOENT; | 340 | return -ENOENT; |
341 | } | 341 | } |
@@ -345,5 +345,5 @@ dasd_proc_exit(void) | |||
345 | { | 345 | { |
346 | remove_proc_entry("devices", dasd_proc_root_entry); | 346 | remove_proc_entry("devices", dasd_proc_root_entry); |
347 | remove_proc_entry("statistics", dasd_proc_root_entry); | 347 | remove_proc_entry("statistics", dasd_proc_root_entry); |
348 | remove_proc_entry("dasd", &proc_root); | 348 | remove_proc_entry("dasd", NULL); |
349 | } | 349 | } |