simple_open: automatically convert to simple_open()
[deliverable/linux.git] / drivers / mtd / ubi / debug.c
index e2cdebf40840e4f3630e6a7bf9868ab46781ab74..61af9bb560ab6777cd90ea5125790f38ee6139a9 100644 (file)
@@ -386,19 +386,11 @@ out:
        return count;
 }
 
-static int default_open(struct inode *inode, struct file *file)
-{
-       if (inode->i_private)
-               file->private_data = inode->i_private;
-
-       return 0;
-}
-
 /* File operations for all UBI debugfs files */
 static const struct file_operations dfs_fops = {
        .read   = dfs_file_read,
        .write  = dfs_file_write,
-       .open   = default_open,
+       .open   = simple_open,
        .llseek = no_llseek,
        .owner  = THIS_MODULE,
 };
This page took 0.04293 seconds and 5 git commands to generate.