diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-27 08:42:11 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-09-04 19:58:30 +0200 |
commit | 0d4de8f5de2a642353834b183b16b367d39ff893 (patch) | |
tree | 0d5e8002054475b49221639aba4f6afcc2c1c9ab /drivers/mmc/host/via-sdmmc.c | |
parent | mmc: dw_mmc-pci: Use module_pci_driver (diff) | |
download | linux-0d4de8f5de2a642353834b183b16b367d39ff893.tar.xz linux-0d4de8f5de2a642353834b183b16b367d39ff893.zip |
mmc: via-sdmmc: Use module_pci_driver
module_pci_driver makes the code simpler by eliminating
module_init and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Harald Welte <laforge@gnumonks.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/via-sdmmc.c')
-rw-r--r-- | drivers/mmc/host/via-sdmmc.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/mmc/host/via-sdmmc.c b/drivers/mmc/host/via-sdmmc.c index 4b83c43f950d..f18becef156d 100644 --- a/drivers/mmc/host/via-sdmmc.c +++ b/drivers/mmc/host/via-sdmmc.c @@ -1337,21 +1337,7 @@ static struct pci_driver via_sd_driver = { .resume = via_sd_resume, }; -static int __init via_sd_drv_init(void) -{ - pr_info(DRV_NAME ": VIA SD/MMC Card Reader driver " - "(C) 2008 VIA Technologies, Inc.\n"); - - return pci_register_driver(&via_sd_driver); -} - -static void __exit via_sd_drv_exit(void) -{ - pci_unregister_driver(&via_sd_driver); -} - -module_init(via_sd_drv_init); -module_exit(via_sd_drv_exit); +module_pci_driver(via_sd_driver); MODULE_LICENSE("GPL"); MODULE_AUTHOR("VIA Technologies Inc."); |