leds: leds-cobalt-raq: use builtin_platform_driver
authorGeliang Tang <geliangtang@gmail.com>
Wed, 23 Nov 2016 14:50:05 +0000 (22:50 +0800)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Wed, 23 Nov 2016 15:38:01 +0000 (16:38 +0100)
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>
drivers/leds/leds-cobalt-raq.c

index b316df4a8c1e375c5c2ed3e20454fcc661159d3e..8d066facdc73da69419a0c4a66034c83eafdf358 100644 (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);