diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-27 11:53:42 +0530 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-09-04 13:58:29 -0400 |
commit | 6f478825158cbfa76bb976e7c9841456b9721a14 (patch) | |
tree | d50da09c52e073ef360f63003694f1dadc5ec49c /drivers/mmc/host/mmc_spi.c | |
parent | 2ad0b2494f83d87046db2c4fe6256546d44b3160 (diff) | |
download | op-kernel-dev-6f478825158cbfa76bb976e7c9841456b9721a14.zip op-kernel-dev-6f478825158cbfa76bb976e7c9841456b9721a14.tar.gz |
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: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/mmc_spi.c')
-rw-r--r-- | drivers/mmc/host/mmc_spi.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c index 273306c..a600eab 100644 --- a/drivers/mmc/host/mmc_spi.c +++ b/drivers/mmc/host/mmc_spi.c @@ -1532,20 +1532,7 @@ static struct spi_driver mmc_spi_driver = { .remove = __devexit_p(mmc_spi_remove), }; - -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_spi_driver(mmc_spi_driver); MODULE_AUTHOR("Mike Lavender, David Brownell, " "Hans-Peter Nilsson, Jan Nikitenko"); |