staging: comedi: usbduxsigma: factor usb buffer allocation out of (*probe)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:49:02 +0000 (12:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:49 +0000 (20:40 +0900)
commit65989c030bbca96be45ed137f6384dbd46030d10
tree1131c04668293ca1908434defed8bacce33e15fe
parent902add47dec8379e36e03d41d7f9877855514ccd
staging: comedi: usbduxsigma: factor usb buffer allocation out of (*probe)

To make pushing the usb_driver (*probe) into the comedi_driver (*auto_attach)
cleaner, factor the usb buffer allocation out of the (*probe). This also
cleans up the failure paths in the (*probe).

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/usbduxsigma.c