From: Greg Kroah-Hartman Date: Thu, 17 Nov 2011 22:38:33 +0000 (-0800) Subject: USB: Add helper macro for usb_driver boilerplate X-Git-Tag: v3.3-rc1~30^2~1^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3a6a4b6cfc80e57bf16bb12f9425bec1a5731a9;p=pandora-kernel.git USB: Add helper macro for usb_driver boilerplate This patch introduces the module_usb_driver macro which is a convenience macro for USB driver modules similar to module_platform_driver. It is intended to be used by drivers which init/exit section does nothing but register/unregister the USB driver. By using this macro it is possible to eliminate a few lines of boilerplate code per USB driver. Based on work done by Lars-Peter Clausen for other busses (i2c and spi). Cc: Lars-Peter Clausen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed