aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/armada
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2013-11-01 13:45:05 +0800
committerDave Airlie <airlied@redhat.com>2013-11-06 12:02:36 +1000
commita276d6ce8a9b146831f3f14b327f74df446a794a (patch)
treea7c67927e8532d9d6361638119172a7d61f93b39 /drivers/gpu/drm/armada
parent0a5a5499ad886dde4a032203d01e324cfe593f99 (diff)
DRM: Armada: convert to use simple_open()
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>
Diffstat (limited to 'drivers/gpu/drm/armada')
-rw-r--r--drivers/gpu/drm/armada/armada_debugfs.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/armada/armada_debugfs.c b/drivers/gpu/drm/armada/armada_debugfs.c
index 612f3753cd9..471e45627f1 100644
--- a/drivers/gpu/drm/armada/armada_debugfs.c
+++ b/drivers/gpu/drm/armada/armada_debugfs.c
@@ -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,
};