summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/usbdux.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2009-03-03 19:38:35 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:53:53 -0700
commitab3795270d3a7985be40ae325d3366cf018fc9dd (patch)
treed00a5439197edc75fa30e839f5440b42e8fe5616 /drivers/staging/comedi/drivers/usbdux.c
parent84cdbf0afe4f391480087dec613c7f8aff5d0496 (diff)
downloadlinux-3.10-ab3795270d3a7985be40ae325d3366cf018fc9dd.tar.gz
linux-3.10-ab3795270d3a7985be40ae325d3366cf018fc9dd.tar.bz2
linux-3.10-ab3795270d3a7985be40ae325d3366cf018fc9dd.zip
Staging: comedi: usbdux: don't initialize semaphores on init
This patch removes usbdux 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/staging/comedi/drivers/usbdux.c')
-rw-r--r--drivers/staging/comedi/drivers/usbdux.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/comedi/drivers/usbdux.c b/drivers/staging/comedi/drivers/usbdux.c
index c215a926421..785e8b70993 100644
--- a/drivers/staging/comedi/drivers/usbdux.c
+++ b/drivers/staging/comedi/drivers/usbdux.c
@@ -2910,17 +2910,6 @@ static comedi_driver driver_usbdux = {
.detach = usbdux_detach,
};
-static void init_usb_devices(void)
-{
- int index;
-
- /* 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 < NUMUSBDUX; index++)
- init_MUTEX(&(usbduxsub[index].sem));
-}
-
/* Table with the USB-devices: just now only testing IDs */
static struct usb_device_id usbduxsub_table[] = {
{USB_DEVICE(0x13d8, 0x0001) },
@@ -2945,7 +2934,6 @@ static int init_usbdux(void)
{
printk(KERN_INFO KBUILD_MODNAME ": "
DRIVER_VERSION ":" DRIVER_DESC "\n");
- init_usb_devices();
usb_register(&usbduxsub_driver);
comedi_driver_register(&driver_usbdux);
return 0;