linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/eeh/of: use builtin_platform_driver
@ 2016-11-23 14:58 Geliang Tang
  2016-11-24  0:52 ` Russell Currey
  2016-11-28 12:15 ` Michael Ellerman
  0 siblings, 2 replies; 3+ messages in thread
From: Geliang Tang @ 2016-11-23 14:58 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman
  Cc: Geliang Tang, linuxppc-dev, linux-kernel

Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] powerpc/eeh/of: use builtin_platform_driver
  2016-11-23 14:58 [PATCH] powerpc/eeh/of: use builtin_platform_driver Geliang Tang
@ 2016-11-24  0:52 ` Russell Currey
  2016-11-28 12:15 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Russell Currey @ 2016-11-24  0:52 UTC (permalink / raw)
  To: Geliang Tang, Benjamin Herrenschmidt, Paul Mackerras,
	Michael Ellerman
  Cc: linuxppc-dev, linux-kernel

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 <geliangtang@gmail.com>
> ---

Acked-by: Russell Currey <ruscur@russell.cc>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: powerpc/eeh/of: use builtin_platform_driver
  2016-11-23 14:58 [PATCH] powerpc/eeh/of: use builtin_platform_driver Geliang Tang
  2016-11-24  0:52 ` Russell Currey
@ 2016-11-28 12:15 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2016-11-28 12:15 UTC (permalink / raw)
  To: Geliang Tang, Benjamin Herrenschmidt, Paul Mackerras
  Cc: Geliang Tang, linuxppc-dev, linux-kernel

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 <geliangtang@gmail.com>
> Acked-by: Russell Currey <ruscur@russell.cc>

Applied to powerpc next, thanks.

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

cheers

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-28 12:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 14:58 [PATCH] powerpc/eeh/of: use builtin_platform_driver Geliang Tang
2016-11-24  0:52 ` Russell Currey
2016-11-28 12:15 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).