diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-10-17 04:32:01 -0400 |
---|---|---|
committer | Borislav Petkov <bp@alien8.de> | 2012-11-28 05:55:22 -0500 |
commit | db7312a295ec113fa7b3f7486c4b62b936a357d3 (patch) | |
tree | 5a4833ceb11d4fb5b977a354bef7bd5a6e55985d /drivers/edac | |
parent | f35d852e8038d6eccd0cce3cf1df1d4bd7d2c473 (diff) |
EDAC: 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.
dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/edac_mc_sysfs.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index a242dae1aeb0..52813b8b0f5f 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c | |||
@@ -846,14 +846,8 @@ static ssize_t edac_fake_inject_write(struct file *file, | |||
846 | return count; | 846 | return count; |
847 | } | 847 | } |
848 | 848 | ||
849 | static int debugfs_open(struct inode *inode, struct file *file) | ||
850 | { | ||
851 | file->private_data = inode->i_private; | ||
852 | return 0; | ||
853 | } | ||
854 | |||
855 | static const struct file_operations debug_fake_inject_fops = { | 849 | static const struct file_operations debug_fake_inject_fops = { |
856 | .open = debugfs_open, | 850 | .open = simple_open, |
857 | .write = edac_fake_inject_write, | 851 | .write = edac_fake_inject_write, |
858 | .llseek = generic_file_llseek, | 852 | .llseek = generic_file_llseek, |
859 | }; | 853 | }; |