.. | .. |
---|
399 | 399 | sizeof(struct ccwdev_iter)); |
---|
400 | 400 | } |
---|
401 | 401 | |
---|
402 | | -static const struct file_operations cio_ignore_proc_fops = { |
---|
403 | | - .open = cio_ignore_proc_open, |
---|
404 | | - .read = seq_read, |
---|
405 | | - .llseek = seq_lseek, |
---|
406 | | - .release = seq_release_private, |
---|
407 | | - .write = cio_ignore_write, |
---|
| 402 | +static const struct proc_ops cio_ignore_proc_ops = { |
---|
| 403 | + .proc_open = cio_ignore_proc_open, |
---|
| 404 | + .proc_read = seq_read, |
---|
| 405 | + .proc_lseek = seq_lseek, |
---|
| 406 | + .proc_release = seq_release_private, |
---|
| 407 | + .proc_write = cio_ignore_write, |
---|
408 | 408 | }; |
---|
409 | 409 | |
---|
410 | 410 | static int |
---|
.. | .. |
---|
413 | 413 | struct proc_dir_entry *entry; |
---|
414 | 414 | |
---|
415 | 415 | entry = proc_create("cio_ignore", S_IFREG | S_IRUGO | S_IWUSR, NULL, |
---|
416 | | - &cio_ignore_proc_fops); |
---|
| 416 | + &cio_ignore_proc_ops); |
---|
417 | 417 | if (!entry) |
---|
418 | 418 | return -ENOENT; |
---|
419 | 419 | return 0; |
---|