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:
Geliang Tang 2016-11-23 22:50:05 +08:00 committed by Jacek Anaszewski
parent 2a4f8114f2
commit cee0122de3
1 changed files with 1 additions and 5 deletions

View File

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