diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2013-11-01 01:45:05 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-11-05 21:02:36 -0500 |
commit | a276d6ce8a9b146831f3f14b327f74df446a794a (patch) | |
tree | a7c67927e8532d9d6361638119172a7d61f93b39 | |
parent | 0a5a5499ad886dde4a032203d01e324cfe593f99 (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>
-rw-r--r-- | drivers/gpu/drm/armada/armada_debugfs.c | 8 |
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 612f3753cd92..471e45627f1e 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, | |||
95 | return len; | 95 | return len; |
96 | } | 96 | } |
97 | 97 | ||
98 | static int armada_debugfs_reg_w_open(struct inode *inode, struct file *file) | ||
99 | { | ||
100 | file->private_data = inode->i_private; | ||
101 | return 0; | ||
102 | } | ||
103 | |||
104 | static const struct file_operations fops_reg_w = { | 98 | static const struct file_operations fops_reg_w = { |
105 | .owner = THIS_MODULE, | 99 | .owner = THIS_MODULE, |
106 | .open = armada_debugfs_reg_w_open, | 100 | .open = simple_open, |
107 | .write = armada_debugfs_write, | 101 | .write = armada_debugfs_write, |
108 | .llseek = noop_llseek, | 102 | .llseek = noop_llseek, |
109 | }; | 103 | }; |