projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7184bc2
)
powerpc/of_platform: Use builtin_platform_driver
author
Geliang Tang
<geliangtang@gmail.com>
Wed, 23 Nov 2016 14:58:56 +0000
(22:58 +0800)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Fri, 25 Nov 2016 03:07:51 +0000
(14:07 +1100)
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>
arch/powerpc/kernel/of_platform.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/kernel/of_platform.c
b/arch/powerpc/kernel/of_platform.c
index b60a67d92ebd0493e67762b9394a02caab60738a..34aeac54f120053a1ff9f8f9311baf30f7b1a1f6 100644
(file)
--- 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 */