summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorDevendra Naga <develkernel412222@gmail.com>2012-07-27 02:00:31 +0800
committerBryan Wu <bryan.wu@canonical.com>2012-07-27 08:16:07 +0800
commitd45bb11616c94c76c6e40960a120c0687b708a2e (patch)
treebaca1339c1af12ed5c0590b6492b2d39ca764f3a /drivers/leds
parent18d4a06f9bb013737b9c21921b15033afb0198d9 (diff)
downloadlinux-d45bb11616c94c76c6e40960a120c0687b708a2e.tar.bz2
leds-lp8788: forgotten unlock at lp8788_led_work
at default case of switch we return with out unlocking the mutex. Signed-off-by: Devendra Naga <develkernel412222@gmail.com> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-lp8788.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/leds-lp8788.c b/drivers/leds/leds-lp8788.c
index 574b49f79093..53bd136f1ef0 100644
--- a/drivers/leds/leds-lp8788.c
+++ b/drivers/leds/leds-lp8788.c
@@ -104,6 +104,7 @@ static void lp8788_led_work(struct work_struct *work)
lp8788_write_byte(led->lp, lp8788_pwm_addr[num], val);
break;
default:
+ mutex_unlock(&led->lock);
return;
}