Skip to content

Commit

Permalink
mmc: sdhci-pci: 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>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Sachin Kamat authored and Chris Ball committed Sep 4, 2012
1 parent 6f47882 commit acc6964
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions drivers/mmc/host/sdhci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1476,24 +1476,7 @@ static struct pci_driver sdhci_driver = {
},
};

/*****************************************************************************\
* *
* Driver init/exit *
* *
\*****************************************************************************/

static int __init sdhci_drv_init(void)
{
return pci_register_driver(&sdhci_driver);
}

static void __exit sdhci_drv_exit(void)
{
pci_unregister_driver(&sdhci_driver);
}

module_init(sdhci_drv_init);
module_exit(sdhci_drv_exit);
module_pci_driver(sdhci_driver);

MODULE_AUTHOR("Pierre Ossman <pierre@ossman.eu>");
MODULE_DESCRIPTION("Secure Digital Host Controller Interface PCI driver");
Expand Down

0 comments on commit acc6964

Please sign in to comment.