diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-02-26 04:18:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-26 08:06:18 -0500 |
commit | b0769891ba7baa53f270dc70d71934748beb4c5b (patch) | |
tree | bc84584f69a32a89eccfc2cbe97821c6773a2106 /drivers/edac/i5100_edac.c | |
parent | 5dae92a718570e6a942e0b882e53d25cab03b40f (diff) |
i5100_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.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/i5100_edac.c')
-rw-r--r-- | drivers/edac/i5100_edac.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c index 6ed11b1881b7..1b635178cc44 100644 --- a/drivers/edac/i5100_edac.c +++ b/drivers/edac/i5100_edac.c | |||
@@ -961,14 +961,8 @@ static ssize_t inject_enable_write(struct file *file, const char __user *data, | |||
961 | return count; | 961 | return count; |
962 | } | 962 | } |
963 | 963 | ||
964 | static int inject_enable_open(struct inode *inode, struct file *file) | ||
965 | { | ||
966 | file->private_data = inode->i_private; | ||
967 | return 0; | ||
968 | } | ||
969 | |||
970 | static const struct file_operations i5100_inject_enable_fops = { | 964 | static const struct file_operations i5100_inject_enable_fops = { |
971 | .open = inject_enable_open, | 965 | .open = simple_open, |
972 | .write = inject_enable_write, | 966 | .write = inject_enable_write, |
973 | .llseek = generic_file_llseek, | 967 | .llseek = generic_file_llseek, |
974 | }; | 968 | }; |