From: Geliang Tang Date: Wed, 23 Nov 2016 14:58:56 +0000 (+0800) Subject: powerpc/of_platform: Use builtin_platform_driver X-Git-Tag: v5.15~12232^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebb242d56bbe14af6ea25cf5e45440df4c26b4b1;p=platform%2Fkernel%2Flinux-starfive.git powerpc/of_platform: Use builtin_platform_driver Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang Acked-by: Russell Currey Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/kernel/of_platform.c b/arch/powerpc/kernel/of_platform.c index b60a67d..34aeac5 100644 --- a/arch/powerpc/kernel/of_platform.c +++ b/arch/powerpc/kernel/of_platform.c @@ -114,11 +114,6 @@ static struct platform_driver of_pci_phb_driver = { }, }; -static __init int of_pci_phb_init(void) -{ - return platform_driver_register(&of_pci_phb_driver); -} - -device_initcall(of_pci_phb_init); +builtin_platform_driver(of_pci_phb_driver); #endif /* CONFIG_PPC_OF_PLATFORM_PCI */