projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8f4aa6
)
sparc: kernel: use builtin_platform_driver
author
Geliang Tang
<geliangtang@gmail.com>
Wed, 23 Nov 2016 15:06:05 +0000
(23:06 +0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 12 Dec 2016 02:15:48 +0000
(18:15 -0800)
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/power.c
patch
|
blob
|
history
diff --git
a/arch/sparc/kernel/power.c
b/arch/sparc/kernel/power.c
index 1836cb965ff80d407afd03463575872bd57c7015..4b60f385c98fdfa59c4b56a8bd422e2efd3cc773 100644
(file)
--- 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);