]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e9fba2e1339fd15a44866cf012a7b6b9162866c
tree1131c04668293ca1908434defed8bacce33e15fe
parentee26f0809954984e23cc2b7af9c0a176e0c7a1a1
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