提交 0c3c87d2 编写于 作者: L Liu Shixin 提交者: Lorenzo Pieralisi

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/20200918030829.3946025-1-liushixin2@huawei.comSigned-off-by: NLiu Shixin <liushixin2@huawei.com>
Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: NRob Herring <robh@kernel.org>
Acked-by: NRay Jui <ray.jui@broadcom.com>
上级 eb7eacaa
...@@ -94,18 +94,7 @@ static struct bcma_driver iproc_pcie_bcma_driver = { ...@@ -94,18 +94,7 @@ static struct bcma_driver iproc_pcie_bcma_driver = {
.probe = iproc_pcie_bcma_probe, .probe = iproc_pcie_bcma_probe,
.remove = iproc_pcie_bcma_remove, .remove = iproc_pcie_bcma_remove,
}; };
module_bcma_driver(iproc_pcie_bcma_driver);
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_AUTHOR("Hauke Mehrtens"); MODULE_AUTHOR("Hauke Mehrtens");
MODULE_DESCRIPTION("Broadcom iProc PCIe BCMA driver"); MODULE_DESCRIPTION("Broadcom iProc PCIe BCMA driver");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册