mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
pwm: Remove a redundant error message when devm_request_and_ioremap fails
The implementation in devm_request_and_ioremap() already shows error message, so no need to show dev_err again if devm_request_and_ioremap() fails. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Philip, Avinash <avinashphilip@ti.com> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
This commit is contained in:
parent
ecefeb7921
commit
2ffdc9a648
3 changed files with 3 additions and 9 deletions
|
@ -187,10 +187,8 @@ static int tegra_pwm_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
pwm->mmio_base = devm_request_and_ioremap(&pdev->dev, r);
|
pwm->mmio_base = devm_request_and_ioremap(&pdev->dev, r);
|
||||||
if (!pwm->mmio_base) {
|
if (!pwm->mmio_base)
|
||||||
dev_err(&pdev->dev, "failed to ioremap() region\n");
|
|
||||||
return -EADDRNOTAVAIL;
|
return -EADDRNOTAVAIL;
|
||||||
}
|
|
||||||
|
|
||||||
platform_set_drvdata(pdev, pwm);
|
platform_set_drvdata(pdev, pwm);
|
||||||
|
|
||||||
|
|
|
@ -192,10 +192,8 @@ static int __devinit ecap_pwm_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
pc->mmio_base = devm_request_and_ioremap(&pdev->dev, r);
|
pc->mmio_base = devm_request_and_ioremap(&pdev->dev, r);
|
||||||
if (!pc->mmio_base) {
|
if (!pc->mmio_base)
|
||||||
dev_err(&pdev->dev, "failed to ioremap() registers\n");
|
|
||||||
return -EADDRNOTAVAIL;
|
return -EADDRNOTAVAIL;
|
||||||
}
|
|
||||||
|
|
||||||
ret = pwmchip_add(&pc->chip);
|
ret = pwmchip_add(&pc->chip);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
|
@ -371,10 +371,8 @@ static int __devinit ehrpwm_pwm_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
pc->mmio_base = devm_request_and_ioremap(&pdev->dev, r);
|
pc->mmio_base = devm_request_and_ioremap(&pdev->dev, r);
|
||||||
if (!pc->mmio_base) {
|
if (!pc->mmio_base)
|
||||||
dev_err(&pdev->dev, "failed to ioremap() registers\n");
|
|
||||||
return -EADDRNOTAVAIL;
|
return -EADDRNOTAVAIL;
|
||||||
}
|
|
||||||
|
|
||||||
ret = pwmchip_add(&pc->chip);
|
ret = pwmchip_add(&pc->chip);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue