diff options
author | Olivier Sobrie <olivier@sobrie.be> | 2015-03-12 21:47:13 (GMT) |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-03-12 21:53:11 (GMT) |
commit | d1b12075ffa808dce33dd46b7ad035bebf8da215 (patch) | |
tree | b2f4b568f13560ab56efb89bc5cead3c7b16e06c /drivers/input | |
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')
-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 a562071..e82edf8 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); |