diff options
Diffstat (limited to 'drivers/leds/leds-lp55xx-common.c')
-rw-r--r-- | drivers/leds/leds-lp55xx-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/leds/leds-lp55xx-common.c b/drivers/leds/leds-lp55xx-common.c index 88317b4f7bf3..3fbfb31602c7 100644 --- a/drivers/leds/leds-lp55xx-common.c +++ b/drivers/leds/leds-lp55xx-common.c | |||
@@ -520,6 +520,8 @@ void lp55xx_unregister_leds(struct lp55xx_led *led, struct lp55xx_chip *chip) | |||
520 | 520 | ||
521 | for (i = 0; i < chip->num_leds; i++) { | 521 | for (i = 0; i < chip->num_leds; i++) { |
522 | each = led + i; | 522 | each = led + i; |
523 | sysfs_remove_group(&each->cdev.dev->kobj, | ||
524 | &lp55xx_led_attr_group); | ||
523 | led_classdev_unregister(&each->cdev); | 525 | led_classdev_unregister(&each->cdev); |
524 | flush_work(&each->brightness_work); | 526 | flush_work(&each->brightness_work); |
525 | } | 527 | } |