提交 62481881 编写于 作者: D David Lechner 提交者: 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: NDavid Lechner <david@lechnology.com>
Reviewed-by: NThierry Reding <thierry.reding@gmail.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册