From: H Hartley Sweeten Date: Thu, 17 May 2012 01:18:52 +0000 (-0700) Subject: staging: comedi: Add helper macro for comedi usb driver boilerplate X-Git-Tag: v3.5-rc1~145^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64255031bde68bd0f7ec934b83842619d513cf91;p=pandora-kernel.git staging: comedi: Add helper macro for comedi usb driver boilerplate Introduce the module_comedi_usb_driver macro, and the associated register/unregister functions, which is a convenience macro for comedi usb driver modules similar to module_platform_driver. It is intended to be used by drivers where the init/exit section does nothing but register/unregister the comedi driver and associated usb driver. By using this macro it is possible to eliminate a few lines of boilerplate code per comedi usb driver. Also, when registering the usb driver check for failure and unregister the comedi driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mori Hess Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed