]> 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)
commitdf1135a8d07a40cc965833f2745ca9f62155fcc5
tree5603c7bd720ed3f6c92302dc6b1bef4722cf2b3d
parent80f3c17d8d314775115d96b80bca910b03d26530
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