summaryrefslogtreecommitdiff
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorOlivier Sobrie <olivier@sobrie.be>2015-03-13 00:47:13 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-03-13 00:53:11 +0300
commitd1b12075ffa808dce33dd46b7ad035bebf8da215 (patch)
treeb2f4b568f13560ab56efb89bc5cead3c7b16e06c /drivers/input/misc
parent877bef7de141db241e0c5d06db988b4ecbe29cf3 (diff)
downloadlinux-d1b12075ffa808dce33dd46b7ad035bebf8da215.tar.xz
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 <olivier@sobrie.be> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r--drivers/input/misc/pwm-beeper.c1
1 files changed, 0 insertions, 1 deletions
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);