]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/tty/serial/pch_uart.c
simple_open: automatically convert to simple_open()
[karo-tx-linux.git] / drivers / tty / serial / pch_uart.c
index 332f2eb8abbc9552e2779de0692cf6d88b05fa49..46ec722b440603184b35466e89ec795185811066 100644 (file)
@@ -304,11 +304,7 @@ static const int trigger_level_1[4] = { 1, 1, 1, 1 };
 #ifdef CONFIG_DEBUG_FS
 
 #define PCH_REGS_BUFSIZE       1024
-static int pch_show_regs_open(struct inode *inode, struct file *file)
-{
-       file->private_data = inode->i_private;
-       return 0;
-}
+
 
 static ssize_t port_show_regs(struct file *file, char __user *user_buf,
                                size_t count, loff_t *ppos)
@@ -362,7 +358,7 @@ static ssize_t port_show_regs(struct file *file, char __user *user_buf,
 
 static const struct file_operations port_regs_ops = {
        .owner          = THIS_MODULE,
-       .open           = pch_show_regs_open,
+       .open           = simple_open,
        .read           = port_show_regs,
        .llseek         = default_llseek,
 };