diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-05-29 13:51:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-29 20:19:30 +0200 |
commit | 7df45d5fc2c951ad89c90d7b201b08eb006c11d9 (patch) | |
tree | f6f6c95b0ad3bda68fb3d76bb8bf0fd668c5a1d6 /drivers/usb | |
parent | usb: host: max3421-hcd: Allow platform-data to specify Vbus polarity (diff) | |
download | linux-7df45d5fc2c951ad89c90d7b201b08eb006c11d9.tar.xz linux-7df45d5fc2c951ad89c90d7b201b08eb006c11d9.zip |
usb: host: max3421-hcd: Use module_spi_driver
module_spi_driver simplifies the code by eliminating
boilerplate code.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: David Mosberger <davidm@egauge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/max3421-hcd.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/usb/host/max3421-hcd.c b/drivers/usb/host/max3421-hcd.c index fd3ed994fa4d..858efcfda50b 100644 --- a/drivers/usb/host/max3421-hcd.c +++ b/drivers/usb/host/max3421-hcd.c @@ -1950,20 +1950,7 @@ static struct spi_driver max3421_driver = { }, }; -static int __init -max3421_mod_init(void) -{ - return spi_register_driver(&max3421_driver); -} - -static void __exit -max3421_mod_exit(void) -{ - spi_unregister_driver(&max3421_driver); -} - -module_init(max3421_mod_init); -module_exit(max3421_mod_exit); +module_spi_driver(max3421_driver); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_AUTHOR("David Mosberger <davidm@egauge.net>"); |