Skip to content

Commit

Permalink
mmc: dw_mmc-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 acc6964 commit 350e3e0
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/mmc/host/dw_mmc-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,7 @@ static struct pci_driver dw_mci_pci_driver = {
},
};

static int __init dw_mci_init(void)
{
return pci_register_driver(&dw_mci_pci_driver);
}

static void __exit dw_mci_exit(void)
{
pci_unregister_driver(&dw_mci_pci_driver);
}

module_init(dw_mci_init);
module_exit(dw_mci_exit);
module_pci_driver(dw_mci_pci_driver);

MODULE_DESCRIPTION("DW Multimedia Card PCI Interface driver");
MODULE_AUTHOR("Shashidhar Hiremath <shashidharh@vayavyalabs.com>");
Expand Down

0 comments on commit 350e3e0

Please sign in to comment.