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>
This commit is contained in:
Geliang Tang 2016-11-23 23:06:05 +08:00 committed by David S. Miller
parent e8f4aa6087
commit b1ebb97550
1 changed files with 1 additions and 6 deletions

View 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);