mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-12 12:22:42 +00:00
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>
This commit is contained in:
parent
84cdbf0afe
commit
ab3795270d
@ -2910,17 +2910,6 @@ static comedi_driver driver_usbdux = {
|
|||||||
.detach = usbdux_detach,
|
.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 */
|
/* Table with the USB-devices: just now only testing IDs */
|
||||||
static struct usb_device_id usbduxsub_table[] = {
|
static struct usb_device_id usbduxsub_table[] = {
|
||||||
{USB_DEVICE(0x13d8, 0x0001) },
|
{USB_DEVICE(0x13d8, 0x0001) },
|
||||||
@ -2945,7 +2934,6 @@ static int init_usbdux(void)
|
|||||||
{
|
{
|
||||||
printk(KERN_INFO KBUILD_MODNAME ": "
|
printk(KERN_INFO KBUILD_MODNAME ": "
|
||||||
DRIVER_VERSION ":" DRIVER_DESC "\n");
|
DRIVER_VERSION ":" DRIVER_DESC "\n");
|
||||||
init_usb_devices();
|
|
||||||
usb_register(&usbduxsub_driver);
|
usb_register(&usbduxsub_driver);
|
||||||
comedi_driver_register(&driver_usbdux);
|
comedi_driver_register(&driver_usbdux);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user