summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/of_platform.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-23 22:58:56 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2016-11-25 14:07:51 +1100
commitebb242d56bbe14af6ea25cf5e45440df4c26b4b1 (patch)
treee9c351ad9be26df2e8661250f42173885bac2584 /arch/powerpc/kernel/of_platform.c
parent7184bc2ddb15d9539c701668d6a5be1574efa6a5 (diff)
downloadlinux-ebb242d56bbe14af6ea25cf5e45440df4c26b4b1.tar.gz
linux-ebb242d56bbe14af6ea25cf5e45440df4c26b4b1.tar.bz2
linux-ebb242d56bbe14af6ea25cf5e45440df4c26b4b1.zip
powerpc/of_platform: Use builtin_platform_driver
Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Acked-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/of_platform.c')
-rw-r--r--arch/powerpc/kernel/of_platform.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/of_platform.c b/arch/powerpc/kernel/of_platform.c
index b60a67d92ebd..34aeac54f120 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 */