From: Alan Cox Date: Mon, 4 Jan 2010 16:25:02 +0000 (+0000) Subject: Staging: sep: Fix use of legacy ioctl fop X-Git-Tag: MMI-PSA29.97-13-9~24618^2~1^2~229 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74e1cd4555c7b8d2fe9de657658f92f859427025;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: sep: Fix use of legacy ioctl fop SEP doesn't need lock_kernel. Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sep/sep_driver.c b/drivers/staging/sep/sep_driver.c index a5d65b9afaab..92fa18655f87 100644 --- a/drivers/staging/sep/sep_driver.c +++ b/drivers/staging/sep/sep_driver.c @@ -2233,7 +2233,7 @@ static int sep_set_flow_id_handler(struct sep_device *sep, 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; struct sep_device *sep = filp->private_data; @@ -2608,7 +2608,7 @@ static dev_t sep_devno; /* the files operations structure of the driver */ static struct file_operations sep_file_operations = { .owner = THIS_MODULE, - .ioctl = sep_ioctl, + .unlocked_ioctl = sep_ioctl, .poll = sep_poll, .open = sep_open, .release = sep_release,