]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/char/virtio_console.c
simple_open: automatically convert to simple_open()
[karo-tx-linux.git] / drivers / char / virtio_console.c
index b58b5618706588936ebcf7a028bde7dba8f616c1..ddf86b6500b7d705ef5853405c265ef5b2f19868 100644 (file)
@@ -1038,12 +1038,6 @@ static struct attribute_group port_attribute_group = {
        .attrs = port_sysfs_entries,
 };
 
-static int debugfs_open(struct inode *inode, struct file *filp)
-{
-       filp->private_data = inode->i_private;
-       return 0;
-}
-
 static ssize_t debugfs_read(struct file *filp, char __user *ubuf,
                            size_t count, loff_t *offp)
 {
@@ -1087,7 +1081,7 @@ static ssize_t debugfs_read(struct file *filp, char __user *ubuf,
 
 static const struct file_operations port_debugfs_ops = {
        .owner = THIS_MODULE,
-       .open  = debugfs_open,
+       .open  = simple_open,
        .read  = debugfs_read,
 };