mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-07 12:00:38 +00:00
mmc: dw_mmc-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>
This commit is contained in:
parent
acc696463d
commit
350e3e00fb
@ -140,18 +140,7 @@ static struct pci_driver dw_mci_pci_driver = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init dw_mci_init(void)
|
module_pci_driver(dw_mci_pci_driver);
|
||||||
{
|
|
||||||
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_DESCRIPTION("DW Multimedia Card PCI Interface driver");
|
MODULE_DESCRIPTION("DW Multimedia Card PCI Interface driver");
|
||||||
MODULE_AUTHOR("Shashidhar Hiremath <shashidharh@vayavyalabs.com>");
|
MODULE_AUTHOR("Shashidhar Hiremath <shashidharh@vayavyalabs.com>");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user