simple_open: automatically convert to simple_open()
[deliverable/linux.git] / drivers / net / wireless / b43legacy / debugfs.c
index 5e28ad0d6d17f8a1c43401594a42f2b040bbdad5..1965edb765a288d090942d81f013710ba88c0677 100644 (file)
@@ -197,12 +197,6 @@ static int restart_write_file(struct b43legacy_wldev *dev, const char *buf, size
 
 #undef fappend
 
-static int b43legacy_debugfs_open(struct inode *inode, struct file *file)
-{
-       file->private_data = inode->i_private;
-       return 0;
-}
-
 static ssize_t b43legacy_debugfs_read(struct file *file, char __user *userbuf,
                                size_t count, loff_t *ppos)
 {
@@ -331,7 +325,7 @@ out_unlock:
                .read   = _read,                                \
                .write  = _write,                               \
                .fops   = {                                     \
-                       .open   = b43legacy_debugfs_open,               \
+                       .open   = simple_open,                          \
                        .read   = b43legacy_debugfs_read,               \
                        .write  = b43legacy_debugfs_write,              \
                        .llseek = generic_file_llseek,                  \
This page took 0.025217 seconds and 5 git commands to generate.