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)
commitcd0109555bd118ddb8ee0df0ca5d8f9bd3d7a77f
tree5603c7bd720ed3f6c92302dc6b1bef4722cf2b3d
parentebc278f1575942d08ad3278b71cde99bd24eae63
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