diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-11-23 15:50:05 +0100 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2016-11-23 16:38:01 +0100 |
commit | cee0122de3a850d3d66d8346a20e3d2a0146b4a0 (patch) | |
tree | 5430fcb18693f57be81888621301f5a247fb54b3 /drivers/leds/leds-cobalt-raq.c | |
parent | Merge tag 'ib-mfd-arm-leds-v4.10' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-cee0122de3a850d3d66d8346a20e3d2a0146b4a0.tar.xz linux-cee0122de3a850d3d66d8346a20e3d2a0146b4a0.zip |
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>
Diffstat (limited to 'drivers/leds/leds-cobalt-raq.c')
-rw-r--r-- | drivers/leds/leds-cobalt-raq.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/leds/leds-cobalt-raq.c b/drivers/leds/leds-cobalt-raq.c index b316df4a8c1e..8d066facdc73 100644 --- a/drivers/leds/leds-cobalt-raq.c +++ b/drivers/leds/leds-cobalt-raq.c @@ -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); |