staging: comedi: usbduxsigma: use attach_usb() hook
authorIan Abbott <abbotti@mev.co.uk>
Mon, 18 Jun 2012 15:35:54 +0000 (16:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jun 2012 00:14:22 +0000 (17:14 -0700)
commit60ff46106744220506841c45f82576b9b56cf22e
treea04956fa98decd8175da05300e7502ff5744918d
parentf7d4d3bc0c5e30ac58e9e41c695852bfdcb8cb95
staging: comedi: usbduxsigma: use attach_usb() hook

Change the usbduxsigma driver to use the new attach_usb() hook in struct
comedi_driver to auto-configure probed USB devices after the firmware is
loaded.

Move the release of the driver's static 'start_stop_sem' semaphore in
usbduxsigma_attach() to occur a bit later for convenience, otherwise the
new usbduxsigma_attach_common() would need to be split in two.  I don't
think the slight delay in releasing the semaphore matters too much; it's
only used in the USB probe and disconnect functions and when attaching
and detaching comedi devices.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxsigma.c