Commit d1b12075 authored by Olivier Sobrie's avatar Olivier Sobrie Committed by Dmitry Torokhov
Browse files

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: default avatarOlivier Sobrie <olivier@sobrie.be>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 877bef7d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);