diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2020-08-12 09:52:14 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2020-12-17 14:18:48 +0100 |
commit | 2e978a4564b82c0b5e31e23f5e7ea8bb9d6a23f7 (patch) | |
tree | 6ee8a1130db552d61ef93b6150aff0165c23ab73 /drivers/pwm/pwm-ab8500.c | |
parent | f1332e9294158d8969a9bf51f01e0d1b3b844f15 (diff) |
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-ab8500.c')
-rw-r--r-- | drivers/pwm/pwm-ab8500.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-ab8500.c b/drivers/pwm/pwm-ab8500.c index fdf3964db4a6..4b6f9e24e11d 100644 --- a/drivers/pwm/pwm-ab8500.c +++ b/drivers/pwm/pwm-ab8500.c @@ -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); |