DRM: Armada: convert to use simple_open()
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Fri, 1 Nov 2013 05:45:05 +0000 (13:45 +0800)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 02:02:36 +0000 (12:02 +1000)
This removes an open coded simple_open() function and replaces file
operations references to the function with simple_open() instead.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/armada/armada_debugfs.c

index 612f3753cd925ae40311ed86198e52d80d73b9c0..471e45627f1e9d05c8d4ced672b60fcc9ac28a38 100644 (file)
@@ -95,15 +95,9 @@ static int armada_debugfs_write(struct file *file, const char __user *ptr,
        return len;
 }
 
-static int armada_debugfs_reg_w_open(struct inode *inode, struct file *file)
-{
-       file->private_data = inode->i_private;
-       return 0;
-}
-
 static const struct file_operations fops_reg_w = {
        .owner = THIS_MODULE,
-       .open = armada_debugfs_reg_w_open,
+       .open = simple_open,
        .write = armada_debugfs_write,
        .llseek = noop_llseek,
 };