forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/s390/block/dasd_proc.c
....@@ -5,7 +5,7 @@
55 * Carsten Otte <Cotte@de.ibm.com>
66 * Martin Schwidefsky <schwidefsky@de.ibm.com>
77 * Bugreports.to..: <Linux390@de.ibm.com>
8
- * Coypright IBM Corp. 1999, 2002
8
+ * Copyright IBM Corp. 1999, 2002
99 *
1010 * /proc interface for the dasd driver.
1111 *
....@@ -320,13 +320,12 @@
320320 #endif /* CONFIG_DASD_PROFILE */
321321 }
322322
323
-static const struct file_operations dasd_stats_proc_fops = {
324
- .owner = THIS_MODULE,
325
- .open = dasd_stats_proc_open,
326
- .read = seq_read,
327
- .llseek = seq_lseek,
328
- .release = single_release,
329
- .write = dasd_stats_proc_write,
323
+static const struct proc_ops dasd_stats_proc_ops = {
324
+ .proc_open = dasd_stats_proc_open,
325
+ .proc_read = seq_read,
326
+ .proc_lseek = seq_lseek,
327
+ .proc_release = single_release,
328
+ .proc_write = dasd_stats_proc_write,
330329 };
331330
332331 /*
....@@ -339,8 +338,7 @@
339338 dasd_proc_root_entry = proc_mkdir("dasd", NULL);
340339 if (!dasd_proc_root_entry)
341340 goto out_nodasd;
342
- dasd_devices_entry = proc_create_seq("devices",
343
- S_IFREG | S_IRUGO | S_IWUSR,
341
+ dasd_devices_entry = proc_create_seq("devices", 0444,
344342 dasd_proc_root_entry,
345343 &dasd_devices_seq_ops);
346344 if (!dasd_devices_entry)
....@@ -348,7 +346,7 @@
348346 dasd_statistics_entry = proc_create("statistics",
349347 S_IFREG | S_IRUGO | S_IWUSR,
350348 dasd_proc_root_entry,
351
- &dasd_stats_proc_fops);
349
+ &dasd_stats_proc_ops);
352350 if (!dasd_statistics_entry)
353351 goto out_nostatistics;
354352 return 0;