[PATCH] powerpc/eeh/of: use builtin_platform_driver

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3546d

3 messages, 3 authors, 2016-11-28 · open the first message on its own page

[PATCH] powerpc/eeh/of: use builtin_platform_driver

From: Geliang Tang <hidden>
Date: 2016-11-23 15:00:05

Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <redacted>
---
 arch/powerpc/kernel/of_platform.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
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 */
-- 
2.9.3

Re: [PATCH] powerpc/eeh/of: use builtin_platform_driver

From: Russell Currey <hidden>
Date: 2016-11-24 01:00:20

On Wed, 2016-11-23 at 22:58 +0800, Geliang Tang wrote:
Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <redacted>
---
Acked-by: Russell Currey <redacted>

Re: powerpc/eeh/of: use builtin_platform_driver

From: Michael Ellerman <hidden>
Date: 2016-11-28 12:15:46

On Wed, 2016-11-23 at 14:58:56 UTC, Geliang Tang wrote:
Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <redacted>
Acked-by: Russell Currey <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/ebb242d56bbe14af6ea25cf5e45440

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help