diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-17 23:38:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-17 23:38:33 +0100 |
commit | f3a6a4b6cfc80e57bf16bb12f9425bec1a5731a9 (patch) | |
tree | 5771513ef737b88392b1484c632fbc33d3d83fce /kernel | |
parent | staging:iio: Use module_spi_driver to register SPI driver (diff) | |
download | linux-f3a6a4b6cfc80e57bf16bb12f9425bec1a5731a9.tar.xz linux-f3a6a4b6cfc80e57bf16bb12f9425bec1a5731a9.zip |
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 <lars@metafoo.de> for other
busses (i2c and spi).
Cc: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions