diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-27 02:27:02 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-09-04 13:58:29 -0400 |
commit | acc696463d1aa8db0c9d20f567789e0cb2ae1de0 (patch) | |
tree | 3ebe9d39690d6268be3f7e800bbf5d99f70e4deb | |
parent | 6f478825158cbfa76bb976e7c9841456b9721a14 (diff) |
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: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/sdhci-pci.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index 504da715a41a..3f0794e53b4a 100644 --- a/drivers/mmc/host/sdhci-pci.c +++ b/drivers/mmc/host/sdhci-pci.c | |||
@@ -1476,24 +1476,7 @@ static struct pci_driver sdhci_driver = { | |||
1476 | }, | 1476 | }, |
1477 | }; | 1477 | }; |
1478 | 1478 | ||
1479 | /*****************************************************************************\ | 1479 | module_pci_driver(sdhci_driver); |
1480 | * * | ||
1481 | * Driver init/exit * | ||
1482 | * * | ||
1483 | \*****************************************************************************/ | ||
1484 | |||
1485 | static int __init sdhci_drv_init(void) | ||
1486 | { | ||
1487 | return pci_register_driver(&sdhci_driver); | ||
1488 | } | ||
1489 | |||
1490 | static void __exit sdhci_drv_exit(void) | ||
1491 | { | ||
1492 | pci_unregister_driver(&sdhci_driver); | ||
1493 | } | ||
1494 | |||
1495 | module_init(sdhci_drv_init); | ||
1496 | module_exit(sdhci_drv_exit); | ||
1497 | 1480 | ||
1498 | MODULE_AUTHOR("Pierre Ossman <pierre@ossman.eu>"); | 1481 | MODULE_AUTHOR("Pierre Ossman <pierre@ossman.eu>"); |
1499 | MODULE_DESCRIPTION("Secure Digital Host Controller Interface PCI driver"); | 1482 | MODULE_DESCRIPTION("Secure Digital Host Controller Interface PCI driver"); |