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 <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
This commit is contained in:
Devendra Naga 2012-07-27 02:00:31 +08:00 • committed by Bryan Wu
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;
}