diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-08-03 21:43:54 +0800 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-08-17 14:08:25 +0200 |
commit | 2ffdc9a64824a373d09f3417ae4377ec83cd9d16 (patch) | |
tree | 469fc563c3c56616278cddbb535ebf8e383f92da /drivers/pwm/pwm-tegra.c | |
parent | ecefeb79218064bf011c5d3ff25322ffa60c302c (diff) | |
download | linux-rpi-2ffdc9a64824a373d09f3417ae4377ec83cd9d16.tar.gz linux-rpi-2ffdc9a64824a373d09f3417ae4377ec83cd9d16.tar.bz2 linux-rpi-2ffdc9a64824a373d09f3417ae4377ec83cd9d16.zip |
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>
Diffstat (limited to 'drivers/pwm/pwm-tegra.c')
-rw-r--r-- | drivers/pwm/pwm-tegra.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pwm/pwm-tegra.c index 02ce18d5e49a..057465e0553c 100644 --- a/drivers/pwm/pwm-tegra.c +++ b/drivers/pwm/pwm-tegra.c @@ -187,10 +187,8 @@ static int tegra_pwm_probe(struct platform_device *pdev) } pwm->mmio_base = devm_request_and_ioremap(&pdev->dev, r); - if (!pwm->mmio_base) { - dev_err(&pdev->dev, "failed to ioremap() region\n"); + if (!pwm->mmio_base) return -EADDRNOTAVAIL; - } platform_set_drvdata(pdev, pwm); |