diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2009-03-03 18:38:32 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 21:53:53 (GMT) |
commit | 3944969427e11f3081d676c16cebeff4060ce992 (patch) | |
tree | 975224b707ff0d8987745525d7f62d4570a6dc40 /drivers | |
parent | 38c39e43f90fa7ab891a2590a59497fe0a10cee2 (diff) | |
download | linux-fsl-qoriq-3944969427e11f3081d676c16cebeff4060ce992.tar.xz |
Staging: comedi: usbduxfast: don't initialize semaphores on init
This patch removes usbduxfast semaphores initialization
from init function as they are initialized later on in
probe function. Also remove init_usb_devices() as it is
not needed anymore.
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Cc: Bernd Porr <BerndPorr@f2s.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: David Schleef <ds@schleef.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/usbduxfast.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/staging/comedi/drivers/usbduxfast.c b/drivers/staging/comedi/drivers/usbduxfast.c index 1712f1d..a8d6469 100644 --- a/drivers/staging/comedi/drivers/usbduxfast.c +++ b/drivers/staging/comedi/drivers/usbduxfast.c @@ -1862,23 +1862,6 @@ static comedi_driver driver_usbduxfast = { .detach = usbduxfast_detach }; -static void __init init_usb_devices(void) -{ - int index; - -#ifdef CONFIG_COMEDI_DEBUG - printk(KERN_DEBUG "comedi_: usbduxfast: setting all possible devs to " - "invalid\n"); -#endif - /* - * all devices entries are invalid to begin with - * they will become valid by the probe function - * and then finally by the attach-function - */ - for (index = 0; index < NUMUSBDUXFAST; index++) - init_MUTEX(&(usbduxfastsub[index].sem)); -} - /* * Table with the USB-devices: just now only testing IDs */ @@ -1912,7 +1895,6 @@ static int __init init_usbduxfast(void) { printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" DRIVER_DESC "\n"); - init_usb_devices(); usb_register(&usbduxfastsub_driver); comedi_driver_register(&driver_usbduxfast); return 0; |