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:
parent
e8f4aa6087
commit
b1ebb97550
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue