projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1332e9
)
pwm: ab8500: Add error message if pwmchip_add() fails
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Wed, 12 Aug 2020 07:52:14 +0000
(09:52 +0200)
committer
Thierry Reding
<thierry.reding@gmail.com>
Thu, 17 Dec 2020 13:18:48 +0000
(14:18 +0100)
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>
drivers/pwm/pwm-ab8500.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-ab8500.c
b/drivers/pwm/pwm-ab8500.c
index fdf3964db4a6a47e3cb23d9915d97de2d411141d..4b6f9e24e11d414ae6e5d32b5b8daab230ab22d0 100644
(file)
--- 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);