mirror of https://gitee.com/openkylin/linux.git
leds: leds-cobalt-raq: use builtin_platform_driver
Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
This commit is contained in:
parent
2a4f8114f2
commit
cee0122de3
|
@ -115,8 +115,4 @@ static struct platform_driver cobalt_raq_led_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init cobalt_raq_led_init(void)
|
||||
{
|
||||
return platform_driver_register(&cobalt_raq_led_driver);
|
||||
}
|
||||
device_initcall(cobalt_raq_led_init);
|
||||
builtin_platform_driver(cobalt_raq_led_driver);
|
||||
|
|
Loading…
Reference in New Issue