[PATCH] sparc: kernel: use builtin_platform_driver
From: Geliang Tang
Date: Wed Nov 23 2016 - 10:07:48 EST
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@xxxxxxxxx>
---
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