summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-bcm6328.c
diff options
context:
space:
mode:
authorMarek Behún <marek.behun@nic.cz>2020-09-18 01:32:58 +0300
committerPavel Machek <pavel@ucw.cz>2020-09-26 22:56:39 +0300
commitff5c89d44453e7ad99502b04bf798a3fc32c758b (patch)
treead9b83cb07dbec5382ea0e2d2c8ad48d62bc8e76 /drivers/leds/leds-bcm6328.c
parent2c67756254349d2b4a1af92c846e32f7e15fae89 (diff)
downloadlinux-ff5c89d44453e7ad99502b04bf798a3fc32c758b.tar.xz
leds: bcm6328, bcm6358: use devres LED registering function
These two drivers do not provide remove method and use devres for allocation of other resources, yet they use led_classdev_register instead of the devres variant, devm_led_classdev_register. Fix this. Signed-off-by: Marek Behún <marek.behun@nic.cz> Cc: Álvaro Fernández Rojas <noltari@gmail.com> Cc: Kevin Cernekee <cernekee@gmail.com> Cc: Jaedon Shin <jaedon.shin@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz> Cc: stable@kernel.org
Diffstat (limited to 'drivers/leds/leds-bcm6328.c')
-rw-r--r--drivers/leds/leds-bcm6328.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-bcm6328.c b/drivers/leds/leds-bcm6328.c
index 73b385d03c0e..d590a2d00bfd 100644
--- a/drivers/leds/leds-bcm6328.c
+++ b/drivers/leds/leds-bcm6328.c
@@ -383,7 +383,7 @@ static int bcm6328_led(struct device *dev, struct device_node *nc, u32 reg,
led->cdev.brightness_set = bcm6328_led_set;
led->cdev.blink_set = bcm6328_blink_set;
- rc = led_classdev_register(dev, &led->cdev);
+ rc = devm_led_classdev_register(dev, &led->cdev);
if (rc < 0)
return rc;