mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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>
This commit is contained in:
parent
877bef7de1
commit
d1b12075ff
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue