Commit 2e978a45 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Thierry Reding

pwm: ab8500: Add error message if pwmchip_add() fails

pwmchip_add() doesn't emit an error message, so add one in the driver.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent f1332e92
......@@ -106,7 +106,7 @@ static int ab8500_pwm_probe(struct platform_device *pdev)
err = pwmchip_add(&ab8500->chip);
if (err < 0)
return err;
return dev_err_probe(&pdev->dev, err, "Failed to add pwm chip\n");
dev_dbg(&pdev->dev, "pwm probe successful\n");
platform_set_drvdata(pdev, ab8500);
......
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