sparc: kernel: use builtin_platform_driver
authorGeliang Tang <geliangtang@gmail.com>
Wed, 23 Nov 2016 15:06:05 +0000 (23:06 +0800)
committerDavid 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

index 1836cb965ff80d407afd03463575872bd57c7015..4b60f385c98fdfa59c4b56a8bd422e2efd3cc773 100644 (file)
@@ -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);