diff options
author | Andi Kleen <ak@linux.intel.com> | 2010-06-01 17:04:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 17:35:35 -0400 |
commit | c532b29a6f6d31e84a7c88f995eebdc75ebd4248 (patch) | |
tree | 5b8dbfae37f6c3c1530ee3651c9d28e00bd15f5e /drivers/usb/misc | |
parent | 6e12ea4658487ba9c746e95b31014cb89f63703b (diff) |
USB-BKL: Convert usb_driver ioctl to unlocked_ioctl
And audit all the users. None needed the BKL. That was easy
because there was only very few around.
Tested with allmodconfig build on x86-64
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
From: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/usbtest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index 16dffe99d9f1..0cfbd789ddf2 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c | |||
@@ -1548,6 +1548,7 @@ fail: | |||
1548 | * off just killing the userspace task and waiting for it to exit. | 1548 | * off just killing the userspace task and waiting for it to exit. |
1549 | */ | 1549 | */ |
1550 | 1550 | ||
1551 | /* No BKL needed */ | ||
1551 | static int | 1552 | static int |
1552 | usbtest_ioctl (struct usb_interface *intf, unsigned int code, void *buf) | 1553 | usbtest_ioctl (struct usb_interface *intf, unsigned int code, void *buf) |
1553 | { | 1554 | { |
@@ -2170,7 +2171,7 @@ static struct usb_driver usbtest_driver = { | |||
2170 | .name = "usbtest", | 2171 | .name = "usbtest", |
2171 | .id_table = id_table, | 2172 | .id_table = id_table, |
2172 | .probe = usbtest_probe, | 2173 | .probe = usbtest_probe, |
2173 | .ioctl = usbtest_ioctl, | 2174 | .unlocked_ioctl = usbtest_ioctl, |
2174 | .disconnect = usbtest_disconnect, | 2175 | .disconnect = usbtest_disconnect, |
2175 | .suspend = usbtest_suspend, | 2176 | .suspend = usbtest_suspend, |
2176 | .resume = usbtest_resume, | 2177 | .resume = usbtest_resume, |