Commit 74e1cd45 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

Staging: sep: Fix use of legacy ioctl fop

SEP doesn't need lock_kernel.
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent db376005
...@@ -2233,7 +2233,7 @@ static int sep_set_flow_id_handler(struct sep_device *sep, ...@@ -2233,7 +2233,7 @@ static int sep_set_flow_id_handler(struct sep_device *sep,
return error; return error;
} }
static int sep_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) static long sep_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{ {
int error = 0; int error = 0;
struct sep_device *sep = filp->private_data; struct sep_device *sep = filp->private_data;
...@@ -2608,7 +2608,7 @@ static dev_t sep_devno; ...@@ -2608,7 +2608,7 @@ static dev_t sep_devno;
/* the files operations structure of the driver */ /* the files operations structure of the driver */
static struct file_operations sep_file_operations = { static struct file_operations sep_file_operations = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.ioctl = sep_ioctl, .unlocked_ioctl = sep_ioctl,
.poll = sep_poll, .poll = sep_poll,
.open = sep_open, .open = sep_open,
.release = sep_release, .release = sep_release,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment