* [PATCH] powerpc: platforms: 83xx: use builtin_platform_driver
@ 2016-11-23 15:00 Geliang Tang
0 siblings, 0 replies; only message in thread
From: Geliang Tang @ 2016-11-23 15:00 UTC (permalink / raw)
To: Scott Wood, Kumar Gala, 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/platforms/83xx/suspend.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/arch/powerpc/platforms/83xx/suspend.c b/arch/powerpc/platforms/83xx/suspend.c
index 24717d0..08f92f6 100644
--- a/arch/powerpc/platforms/83xx/suspend.c
+++ b/arch/powerpc/platforms/83xx/suspend.c
@@ -441,8 +441,4 @@ static struct platform_driver pmc_driver = {
.remove = pmc_remove
};
-static int pmc_init(void)
-{
- return platform_driver_register(&pmc_driver);
-}
-device_initcall(pmc_init);
+builtin_platform_driver(pmc_driver);
--
2.9.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-23 15:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-23 15:00 [PATCH] powerpc: platforms: 83xx: use builtin_platform_driver Geliang Tang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®