leds: lm36274: use devres LED registering function
authorMarek Behún <marek.behun@nic.cz>
Sat, 19 Sep 2020 18:03:01 +0000 (20:03 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:43 +0000 (21:56 +0200)
commit60bbd9d411e32328dbecaff9ec5dfab29b546aba
treee1420c97336427a8bebc266b08655d8731887775
parent5c0d20a968ae878ccdb2a42a0438610cf02cff13
leds: lm36274: use devres LED registering function

Now that the potential use-after-free issue is resolved we can use
devres for LED registration in this driver.

By using devres version of LED registering function we can remove the
.remove method from this driver.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Tested-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lm36274.c