From: Wei Yongjun Date: Sat, 10 Sep 2016 12:31:01 +0000 (+0000) Subject: PCI: altera: Use builtin_platform_driver() to simplify the code X-Git-Tag: v4.14-rc1~1865^2~11^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5d933b1229c6bb79de3a144d2b33e756f4afd6d;p=platform%2Fkernel%2Flinux-rpi.git PCI: altera: Use builtin_platform_driver() to simplify the code Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index b0ac4df..eefcb38 100644 --- a/drivers/pci/host/pcie-altera.c +++ b/drivers/pci/host/pcie-altera.c @@ -641,8 +641,4 @@ static struct platform_driver altera_pcie_driver = { }, }; -static int altera_pcie_init(void) -{ - return platform_driver_register(&altera_pcie_driver); -} -device_initcall(altera_pcie_init); +builtin_platform_driver(altera_pcie_driver);