mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
EDAC, Calxeda highbank: 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) Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
This commit is contained in:
parent
3c0622760a
commit
f35d852e80
1 changed files with 1 additions and 7 deletions
|
@ -113,14 +113,8 @@ static ssize_t highbank_mc_err_inject_write(struct file *file,
|
|||
return count;
|
||||
}
|
||||
|
||||
static int debugfs_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
file->private_data = inode->i_private;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct file_operations highbank_mc_debug_inject_fops = {
|
||||
.open = debugfs_open,
|
||||
.open = simple_open,
|
||||
.write = highbank_mc_err_inject_write,
|
||||
.llseek = generic_file_llseek,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue