Commit 62481881 authored by David Lechner's avatar David Lechner Committed by Dmitry Torokhov

Input: pwm-beeper - suppress error message on probe defer

This suppress printing an error message when pwm_get returns -EPROBE_DEFER.
Otherwise you get a bunch of noise in the kernel log.
Signed-off-by: default avatarDavid Lechner <david@lechnology.com>
Reviewed-by: default avatarThierry Reding <thierry.reding@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent e9728f0d
...@@ -108,7 +108,9 @@ static int pwm_beeper_probe(struct platform_device *pdev) ...@@ -108,7 +108,9 @@ static int pwm_beeper_probe(struct platform_device *pdev)
beeper->pwm = devm_pwm_get(dev, NULL); beeper->pwm = devm_pwm_get(dev, NULL);
if (IS_ERR(beeper->pwm)) { if (IS_ERR(beeper->pwm)) {
error = PTR_ERR(beeper->pwm); error = PTR_ERR(beeper->pwm);
dev_err(dev, "Failed to request PWM device: %d\n", error); if (error != -EPROBE_DEFER)
dev_err(dev, "Failed to request PWM device: %d\n",
error);
return error; return error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment