aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/edac_mc_sysfs.c8
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
849static int debugfs_open(struct inode *inode, struct file *file)
850{
851 file->private_data = inode->i_private;
852 return 0;
853}
854
855static const struct file_operations debug_fake_inject_fops = { 849static 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};