]> git.baikalelectronics.ru Git - kernel.git/commit
leds: netxbig: convert to use the devm_ functions
authorSimon Guinot <simon.guinot@sequanux.org>
Sat, 26 Sep 2015 21:02:37 +0000 (23:02 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 3 Nov 2015 07:59:33 +0000 (08:59 +0100)
commit27eab5654c4fdeb14f66324a3ecd341916ac2cc7
tree5603c7bd720ed3f6c92302dc6b1bef4722cf2b3d
parentc1f8c3cbd797a9ae3a5e0fe294bc15eb65793b51
leds: netxbig: convert to use the devm_ functions

This patch converts the leds-netxbig driver to use the devres functions
devm_gpio_request_one() and devm_led_classdev_register(). This allows to
simplify the code a bit.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-netxbig.c