]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Input: pwm-beeper - remove useless call to pwm_config()
authorOlivier Sobrie <olivier@sobrie.be>
Thu, 12 Mar 2015 21:47:13 +0000 (14:47 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 12 Mar 2015 21:53:11 +0000 (14:53 -0700)
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 <olivier@sobrie.be>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pwm-beeper.c

index a562071f6385976ee6b141a171d15b0b4f760b8b..e82edf810d1f3e6354b992f852ddbe8f433cd0b3 100644 (file)
@@ -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);