diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-11-23 23:06:05 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-11 18:15:48 -0800 |
commit | b1ebb975507d07d3ce84695273acc872786194da (patch) | |
tree | c495bca3d3a29787e617d9406dd536d9c0638f72 /arch/sparc | |
parent | e8f4aa6087fa80732382881ef7c0c96733bb1984 (diff) | |
download | linux-stable-b1ebb975507d07d3ce84695273acc872786194da.tar.gz linux-stable-b1ebb975507d07d3ce84695273acc872786194da.tar.bz2 linux-stable-b1ebb975507d07d3ce84695273acc872786194da.zip |
sparc: kernel: use builtin_platform_driver
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>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/power.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/sparc/kernel/power.c b/arch/sparc/kernel/power.c index 1836cb965ff8..4b60f385c98f 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); |