Commit acc69646 authored by Sachin Kamat's avatar Sachin Kamat Committed by Chris Ball

mmc: sdhci-pci: 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>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 6f478825
...@@ -1476,24 +1476,7 @@ static struct pci_driver sdhci_driver = { ...@@ -1476,24 +1476,7 @@ static struct pci_driver sdhci_driver = {
}, },
}; };
/*****************************************************************************\ module_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_AUTHOR("Pierre Ossman <pierre@ossman.eu>"); MODULE_AUTHOR("Pierre Ossman <pierre@ossman.eu>");
MODULE_DESCRIPTION("Secure Digital Host Controller Interface PCI driver"); MODULE_DESCRIPTION("Secure Digital Host Controller Interface PCI driver");
......
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