diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-12-08 20:08:05 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-19 03:56:07 -0500 |
commit | 1818681cda4a1cd23a6c7582db2874b680fac6d4 (patch) | |
tree | daa2c8f9469de13793b75b0714d274c6f111df73 | |
parent | 304f0a98d168563b5f69c53a7544c36e6d221ac4 (diff) |
mmc: toshsd: use module_pci_driver to simplify the code
Use the module_pci_driver() macro to make the code simpler
by eliminating module_init and module_exit calls.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/toshsd.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mmc/host/toshsd.c b/drivers/mmc/host/toshsd.c index 4666262edaca..e5d8dec65f44 100644 --- a/drivers/mmc/host/toshsd.c +++ b/drivers/mmc/host/toshsd.c | |||
@@ -699,18 +699,7 @@ static struct pci_driver toshsd_driver = { | |||
699 | .driver.pm = &toshsd_pm_ops, | 699 | .driver.pm = &toshsd_pm_ops, |
700 | }; | 700 | }; |
701 | 701 | ||
702 | static int __init toshsd_drv_init(void) | 702 | module_pci_driver(toshsd_driver); |
703 | { | ||
704 | return pci_register_driver(&toshsd_driver); | ||
705 | } | ||
706 | |||
707 | static void __exit toshsd_drv_exit(void) | ||
708 | { | ||
709 | pci_unregister_driver(&toshsd_driver); | ||
710 | } | ||
711 | |||
712 | module_init(toshsd_drv_init); | ||
713 | module_exit(toshsd_drv_exit); | ||
714 | 703 | ||
715 | MODULE_AUTHOR("Ondrej Zary, Richard Betts"); | 704 | MODULE_AUTHOR("Ondrej Zary, Richard Betts"); |
716 | MODULE_DESCRIPTION("Toshiba PCI Secure Digital Host Controller Interface driver"); | 705 | MODULE_DESCRIPTION("Toshiba PCI Secure Digital Host Controller Interface driver"); |