staging: comedi: usbduxfast: Use comedi_usb_auto_unconfig() for (*disconnect)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 20:29:35 +0000 (13:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:24:19 +0000 (16:24 -0700)
commit0c4ab6715cf34293f40c8c80f361ca08d7cf1bc2
treea16082926b350fc540a6ca59b1402e67e2ef2aaa
parentf8eb27e07642545e6ed0f47054c0c041fdf91609
staging: comedi: usbduxfast: Use comedi_usb_auto_unconfig() for (*disconnect)

The usb_driver (*disconnect) calls comedi_usb_auto_unconfig() then
frees any allocations by calling tidy_up(). comedi_usb_auto_unconfig()
calls the comedi_driver (*detach) function, usbduxfast_detach().

Move the tidy_up() call into usbduxfast_detach() and use the
comedi_usb_auto_unconfig() directly for the (*disconnect).

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxfast.c