From d45bb11616c94c76c6e40960a120c0687b708a2e Mon Sep 17 00:00:00 2001
From: Devendra Naga
Date: Fri, 27 Jul 2012 02:00:31 +0800
Subject: 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>
---
 drivers/leds/leds-lp8788.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'drivers/leds')

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;
 	}
 
-- 
cgit v1.2.3