Commit 7df45d5f authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman

usb: host: max3421-hcd: Use module_spi_driver

module_spi_driver simplifies the code by eliminating
boilerplate code.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarDavid Mosberger <davidm@egauge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4055e5e5
......@@ -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>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment