This patch removes an open coded simple_open() function and replace file
operations references to the function with simple_open() instead
Signed-off-by: Abdul Hussain <habdul@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
return count;
}
-static int
-fld_debugfs_cache_flush_open(struct inode *inode, struct file *file)
-{
- file->private_data = inode->i_private;
- return 0;
-}
-
static int
fld_debugfs_cache_flush_release(struct inode *inode, struct file *file)
{
static struct file_operations fld_debugfs_cache_flush_fops = {
.owner = THIS_MODULE,
- .open = fld_debugfs_cache_flush_open,
+ .open = simple_open,
.write = fld_debugfs_cache_flush_write,
.release = fld_debugfs_cache_flush_release,
};