leds: ns2: use devres LED registering function
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:33:24 +0000 (00:33 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:41 +0000 (21:56 +0200)
commit40f97281ff0540d43d3d0343d74a8e96573ed227
tree7df77cc74258b7d318f609ff4620e26305d0b80a
parent6be2030dd752041fe35a948df78029aaec598b1e
leds: ns2: use devres LED registering function

By using devres version of LED registering function we can remove the
.remove method from this driver. The probe method also gets simpler.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: Simon Guinot <simon.guinot@sequanux.org>
Cc: Simon Guinot <sguinot@lacie.com>
Cc: Vincent Donnefort <vdonnefort@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-ns2.c