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)
|
builtin_platform_driver(power_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&power_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(power_init);
|
|
||||||
|
|
Loading…
Reference in a new issue