diff options
author | Liu Shixin <[email protected]> | 2020-09-18 11:08:29 +0800 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2020-10-02 12:45:26 +0100 |
commit | 0c3c87d2b270a179f1149df5b84a7f7ad3474bdb (patch) | |
tree | e9621ba590a349e839b101b9b6a0d225cc09afa9 | |
parent | eb7eacaa5b9e4f665bd08d416c8f88e63d2f123c (diff) |
PCI: iproc: Use module_bcma_driver to simplify the code
module_bcma_driver() makes the code simpler by eliminating
boilerplate code.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Liu Shixin <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Acked-by: Ray Jui <[email protected]>
-rw-r--r-- | drivers/pci/controller/pcie-iproc-bcma.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/pci/controller/pcie-iproc-bcma.c b/drivers/pci/controller/pcie-iproc-bcma.c index aa55b064f64d..56b8ee7bf330 100644 --- a/drivers/pci/controller/pcie-iproc-bcma.c +++ b/drivers/pci/controller/pcie-iproc-bcma.c @@ -94,18 +94,7 @@ static struct bcma_driver iproc_pcie_bcma_driver = { .probe = iproc_pcie_bcma_probe, .remove = iproc_pcie_bcma_remove, }; - -static int __init iproc_pcie_bcma_init(void) -{ - return bcma_driver_register(&iproc_pcie_bcma_driver); -} -module_init(iproc_pcie_bcma_init); - -static void __exit iproc_pcie_bcma_exit(void) -{ - bcma_driver_unregister(&iproc_pcie_bcma_driver); -} -module_exit(iproc_pcie_bcma_exit); +module_bcma_driver(iproc_pcie_bcma_driver); MODULE_AUTHOR("Hauke Mehrtens"); MODULE_DESCRIPTION("Broadcom iProc PCIe BCMA driver"); |