From: H Hartley Sweeten Date: Thu, 23 May 2013 19:49:50 +0000 (-0700) Subject: staging: comedi: usbduxsigma: push usb (*probe) into comedi (*auto_attach) X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~463 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1823fcbfad82f6b5ceae6ca002e0b6a78b2fe6a9;p=pandora-kernel.git staging: comedi: usbduxsigma: push usb (*probe) into comedi (*auto_attach) The usb_driver (*probe) already calls comedi_usb_auto_config(), which will call the comedi_driver (*auto_attach). Move the bulk of the (*probe) to the (*auto_attach). This allows the comedi_device private data to be kzalloc'ed and the static array used to pass the private data from the usb_driver to the comedi_driver can be removed along with the static semaphore that protected it. We can also drop a couple variables from the private data since they no longer are used or needed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed