projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3a68eb
)
leds-lp55xx: fix error condition in lp55xx_register_leds()
author
Milo(Woogyom) Kim
<milo.kim@ti.com>
Tue, 5 Feb 2013 10:12:47 +0000
(19:12 +0900)
committer
Bryan Wu
<cooloney@gmail.com>
Wed, 6 Feb 2013 23:59:28 +0000
(15:59 -0800)
Use lp55xx_unregister_leds() rather than duplicate code.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lp55xx-common.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-lp55xx-common.c
b/drivers/leds/leds-lp55xx-common.c
index
dcd64f5
..
cd19027
100644
(file)
--- a/
drivers/leds/leds-lp55xx-common.c
+++ b/
drivers/leds/leds-lp55xx-common.c
@@
-344,11
+344,7
@@
int lp55xx_register_leds(struct lp55xx_led *led, struct lp55xx_chip *chip)
return 0;
err_init_led:
- for (i = 0; i < chip->num_leds; i++) {
- each = led + i;
- led_classdev_unregister(&each->cdev);
- flush_work(&each->brightness_work);
- }
+ lp55xx_unregister_leds(led, chip);
return ret;
}
EXPORT_SYMBOL_GPL(lp55xx_register_leds);