Commit b1ebb975 authored by Geliang Tang's avatar Geliang Tang Committed by David S. Miller

sparc: kernel: use builtin_platform_driver

Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e8f4aa60
...@@ -67,9 +67,4 @@ static struct platform_driver power_driver = { ...@@ -67,9 +67,4 @@ static struct platform_driver power_driver = {
}, },
}; };
static int __init power_init(void) builtin_platform_driver(power_driver);
{
return platform_driver_register(&power_driver);
}
device_initcall(power_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment