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>
This commit is contained in:
Devendra Naga 2012-07-27 02:00:31 +08:00 committed by Bryan Wu
parent 18d4a06f9b
commit d45bb11616

View File

@ -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;
}