From: Geliang Tang Date: Wed, 23 Nov 2016 14:55:07 +0000 (+0800) Subject: PCI: spear: Use builtin_platform_driver() to simplify the code X-Git-Tag: v4.14-rc1~1865^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=554d9ec7b4c3f4bd439333135882a873bd734b4e;p=platform%2Fkernel%2Flinux-rpi.git PCI: spear: Use builtin_platform_driver() to simplify the code Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index 3cf197b..dafe8b8 100644 --- a/drivers/pci/host/pcie-spear13xx.c +++ b/drivers/pci/host/pcie-spear13xx.c @@ -296,8 +296,4 @@ static struct platform_driver spear13xx_pcie_driver = { }, }; -static int __init spear13xx_pcie_init(void) -{ - return platform_driver_register(&spear13xx_pcie_driver); -} -device_initcall(spear13xx_pcie_init); +builtin_platform_driver(spear13xx_pcie_driver);