]> Git Repo - linux.git/blobdiff - arch/powerpc/platforms/pseries/scanlog.c
proc: convert everything to "struct proc_ops"
[linux.git] / arch / powerpc / platforms / pseries / scanlog.c
index a0001280503ce03cb933e8a42a6c28e542baf28f..2879c4f0ceb7d670ae1317f611190d668e4b0c62 100644 (file)
@@ -152,13 +152,12 @@ static int scanlog_release(struct inode * inode, struct file * file)
        return 0;
 }
 
-static const struct file_operations scanlog_fops = {
-       .owner          = THIS_MODULE,
-       .read           = scanlog_read,
-       .write          = scanlog_write,
-       .open           = scanlog_open,
-       .release        = scanlog_release,
-       .llseek         = noop_llseek,
+static const struct proc_ops scanlog_proc_ops = {
+       .proc_read      = scanlog_read,
+       .proc_write     = scanlog_write,
+       .proc_open      = scanlog_open,
+       .proc_release   = scanlog_release,
+       .proc_lseek     = noop_llseek,
 };
 
 static int __init scanlog_init(void)
@@ -176,7 +175,7 @@ static int __init scanlog_init(void)
                goto err;
 
        ent = proc_create("powerpc/rtas/scan-log-dump", 0400, NULL,
-                         &scanlog_fops);
+                         &scanlog_proc_ops);
        if (!ent)
                goto err;
        return 0;
This page took 0.032339 seconds and 4 git commands to generate.