Skip to content

Commit

Permalink
mmc: via-sdmmc: Use module_pci_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Chris Ball committed Sep 4, 2012
1 parent 350e3e0 commit 0d4de8f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions drivers/mmc/host/via-sdmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 0d4de8f

Please sign in to comment.