| .. | .. |
|---|
| 5 | 5 | * Carsten Otte <Cotte@de.ibm.com> |
|---|
| 6 | 6 | * Martin Schwidefsky <schwidefsky@de.ibm.com> |
|---|
| 7 | 7 | * Bugreports.to..: <Linux390@de.ibm.com> |
|---|
| 8 | | - * Coypright IBM Corp. 1999, 2002 |
|---|
| 8 | + * Copyright IBM Corp. 1999, 2002 |
|---|
| 9 | 9 | * |
|---|
| 10 | 10 | * /proc interface for the dasd driver. |
|---|
| 11 | 11 | * |
|---|
| .. | .. |
|---|
| 320 | 320 | #endif /* CONFIG_DASD_PROFILE */ |
|---|
| 321 | 321 | } |
|---|
| 322 | 322 | |
|---|
| 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, |
|---|
| 330 | 329 | }; |
|---|
| 331 | 330 | |
|---|
| 332 | 331 | /* |
|---|
| .. | .. |
|---|
| 339 | 338 | dasd_proc_root_entry = proc_mkdir("dasd", NULL); |
|---|
| 340 | 339 | if (!dasd_proc_root_entry) |
|---|
| 341 | 340 | 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, |
|---|
| 344 | 342 | dasd_proc_root_entry, |
|---|
| 345 | 343 | &dasd_devices_seq_ops); |
|---|
| 346 | 344 | if (!dasd_devices_entry) |
|---|
| .. | .. |
|---|
| 348 | 346 | dasd_statistics_entry = proc_create("statistics", |
|---|
| 349 | 347 | S_IFREG | S_IRUGO | S_IWUSR, |
|---|
| 350 | 348 | dasd_proc_root_entry, |
|---|
| 351 | | - &dasd_stats_proc_fops); |
|---|
| 349 | + &dasd_stats_proc_ops); |
|---|
| 352 | 350 | if (!dasd_statistics_entry) |
|---|
| 353 | 351 | goto out_nostatistics; |
|---|
| 354 | 352 | return 0; |
|---|