* [PATCH] sparc: kernel: use builtin_platform_driver
@ 2016-11-23 15:06 Geliang Tang
2016-12-12 2:06 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Geliang Tang @ 2016-11-23 15:06 UTC (permalink / raw)
To: David S. Miller; +Cc: Geliang Tang, sparclinux, linux-kernel
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
arch/sparc/kernel/power.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/arch/sparc/kernel/power.c b/arch/sparc/kernel/power.c
index 1836cb9..4b60f38 100644
--- a/arch/sparc/kernel/power.c
+++ b/arch/sparc/kernel/power.c
@@ -67,9 +67,4 @@ static struct platform_driver power_driver = {
},
};
-static int __init power_init(void)
-{
- return platform_driver_register(&power_driver);
-}
-
-device_initcall(power_init);
+builtin_platform_driver(power_driver);
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sparc: kernel: use builtin_platform_driver
2016-11-23 15:06 [PATCH] sparc: kernel: use builtin_platform_driver Geliang Tang
@ 2016-12-12 2:06 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-12-12 2:06 UTC (permalink / raw)
To: geliangtang; +Cc: sparclinux, linux-kernel
From: Geliang Tang <geliangtang@gmail.com>
Date: Wed, 23 Nov 2016 23:06:05 +0800
> Use builtin_platform_driver() helper to simplify the code.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-12 2:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-23 15:06 [PATCH] sparc: kernel: use builtin_platform_driver Geliang Tang
2016-12-12 2:06 ` David Miller
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).