Commit dfc28b11 authored by Wei Yongjun's avatar Wei Yongjun Committed by Ulf Hansson

mmc: cavium: Use module_pci_driver to simplify the code

Use the module_pci_driver() macro to make the code simpler
by eliminating module_init and module_exit calls.
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarJan Glauber <jglauber@cavium.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 01d95843
...@@ -179,18 +179,7 @@ static struct pci_driver thunder_mmc_driver = { ...@@ -179,18 +179,7 @@ static struct pci_driver thunder_mmc_driver = {
.remove = thunder_mmc_remove, .remove = thunder_mmc_remove,
}; };
static int __init thunder_mmc_init_module(void) module_pci_driver(thunder_mmc_driver);
{
return pci_register_driver(&thunder_mmc_driver);
}
static void __exit thunder_mmc_exit_module(void)
{
pci_unregister_driver(&thunder_mmc_driver);
}
module_init(thunder_mmc_init_module);
module_exit(thunder_mmc_exit_module);
MODULE_AUTHOR("Cavium Inc."); MODULE_AUTHOR("Cavium Inc.");
MODULE_DESCRIPTION("Cavium ThunderX eMMC Driver"); MODULE_DESCRIPTION("Cavium ThunderX eMMC 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