Web lists-archives.com

[RFC PATCH 2/2] Input: lm8323: remove recursive mutex lock/unlock




Recursive mutex lock/unlock is not permitted. Remove.

Signed-off-by: Sven Van Asbroeck <TheSven73@xxxxxxxxx>
---
 drivers/input/keyboard/lm8323.c | 2 --
 1 file changed, 2 deletions(-)

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);
 }
 
 /*
-- 
2.17.1