projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f254bea
)
leds: lp55xx-common: fix sysfs entry leak
author
Johan Hovold
<johan@kernel.org>
Wed, 25 Jun 2014 17:08:55 +0000
(10:08 -0700)
committer
Bryan Wu
<cooloney@gmail.com>
Fri, 27 Jun 2014 20:44:04 +0000
(13:44 -0700)
Make sure the sysfs group is removed when the LEDs are unregistered.
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lp55xx-common.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/leds/leds-lp55xx-common.c
b/drivers/leds/leds-lp55xx-common.c
index 88317b4f7bf3abf70e4337a12aa682646e8a2e56..3fbfb31602c7070d84966349b47a47c42e3eb1ad 100644
(file)
--- 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)
for (i = 0; i < chip->num_leds; i++) {
each = led + i;
+ sysfs_remove_group(&each->cdev.dev->kobj,
+ &lp55xx_led_attr_group);
led_classdev_unregister(&each->cdev);
flush_work(&each->brightness_work);
}