Commit 0d4de8f5 authored by Sachin Kamat's avatar Sachin Kamat Committed by Chris Ball

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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarHarald Welte <laforge@gnumonks.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 350e3e00
...@@ -1337,21 +1337,7 @@ static struct pci_driver via_sd_driver = { ...@@ -1337,21 +1337,7 @@ static struct pci_driver via_sd_driver = {
.resume = via_sd_resume, .resume = via_sd_resume,
}; };
static int __init via_sd_drv_init(void) module_pci_driver(via_sd_driver);
{
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_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR("VIA Technologies Inc."); MODULE_AUTHOR("VIA Technologies Inc.");
......
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