Commit 6f478825 authored by Sachin Kamat's avatar Sachin Kamat Committed by Chris Ball

mmc: mmc_spi: Use module_spi_driver

module_spi_driver makes the code simpler by eliminating
module_init and module_exit calls.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 2ad0b249
...@@ -1532,20 +1532,7 @@ static struct spi_driver mmc_spi_driver = { ...@@ -1532,20 +1532,7 @@ static struct spi_driver mmc_spi_driver = {
.remove = __devexit_p(mmc_spi_remove), .remove = __devexit_p(mmc_spi_remove),
}; };
module_spi_driver(mmc_spi_driver);
static int __init mmc_spi_init(void)
{
return spi_register_driver(&mmc_spi_driver);
}
module_init(mmc_spi_init);
static void __exit mmc_spi_exit(void)
{
spi_unregister_driver(&mmc_spi_driver);
}
module_exit(mmc_spi_exit);
MODULE_AUTHOR("Mike Lavender, David Brownell, " MODULE_AUTHOR("Mike Lavender, David Brownell, "
"Hans-Peter Nilsson, Jan Nikitenko"); "Hans-Peter Nilsson, Jan Nikitenko");
......
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