Message ID | 20190208193434.5629-2-TheSven73@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [RFC,1/2] Input: lm8323: switch to using set_brightness_blocking | expand |
diff --git a/drivers/input/keyboard/lm8323.c b/drivers/input/keyboard/lm8323.c index ea4ed1750eb5..4363c60f7845 100644 --- a/drivers/input/keyboard/lm8323.c +++ b/drivers/input/keyboard/lm8323.c @@ -359,11 +359,9 @@ static int lm8323_configure(struct lm8323_chip *lm) static void pwm_done(struct lm8323_pwm *pwm) { - mutex_lock(&pwm->lock); pwm->running = false; if (pwm->desired_brightness != pwm->brightness) led_set_brightness(&pwm->cdev, pwm->desired_brightness); - mutex_unlock(&pwm->lock); } /*
Recursive mutex lock/unlock is not permitted. Remove. Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com> --- drivers/input/keyboard/lm8323.c | 2 -- 1 file changed, 2 deletions(-)