]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 28 Oct 2015 11:12:23 +0000 (12:12 +0100)
commitcf71c5ba2584590c70c7a52981f3659254479853
treea42d55b0375c1a776af7a2253de4b75ee45567f4
parente7a0e7c164b0f2e450dc490c155ea039e52ec93b
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