From: Olivier Sobrie Date: Thu, 12 Mar 2015 21:47:13 +0000 (-0700) Subject: Input: pwm-beeper - remove useless call to pwm_config() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d1b12075ffa808dce33dd46b7ad035bebf8da215;p=linux-beck.git Input: pwm-beeper - remove useless call to pwm_config() Calling pwm_config() with a period equal to zero always results in error (-EINVAL) and pwm chip config method is never called. Signed-off-by: Olivier Sobrie Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/input/misc/pwm-beeper.c index a562071f6385..e82edf810d1f 100644 --- a/drivers/input/misc/pwm-beeper.c +++ b/drivers/input/misc/pwm-beeper.c @@ -50,7 +50,6 @@ static int pwm_beeper_event(struct input_dev *input, } if (value == 0) { - pwm_config(beeper->pwm, 0, 0); pwm_disable(beeper->pwm); } else { period = HZ_TO_NANOSECONDS(value);