diff options
author | Olivier Sobrie <olivier@sobrie.be> | 2015-03-13 00:47:13 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-03-13 00:53:11 +0300 |
commit | d1b12075ffa808dce33dd46b7ad035bebf8da215 (patch) | |
tree | b2f4b568f13560ab56efb89bc5cead3c7b16e06c /drivers/input/misc | |
parent | 877bef7de141db241e0c5d06db988b4ecbe29cf3 (diff) | |
download | linux-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.c | 1 |
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); |