diff options
| author | Axel Lin <[email protected]> | 2012-08-03 13:43:54 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2012-08-17 12:08:25 +0000 |
| commit | 2ffdc9a64824a373d09f3417ae4377ec83cd9d16 (patch) | |
| tree | 469fc563c3c56616278cddbb535ebf8e383f92da /drivers/pwm/pwm-tiecap.c | |
| parent | pwm: samsung: add missing device pointer to struct pwm_chip (diff) | |
| download | kernel-2ffdc9a64824a373d09f3417ae4377ec83cd9d16.tar.gz kernel-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 <[email protected]>
Cc: Stephen Warren <[email protected]>
Cc: Philip, Avinash <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-tiecap.c')
| -rw-r--r-- | drivers/pwm/pwm-tiecap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c index 3c2ad284ee3e..0b66d0f25922 100644 --- a/drivers/pwm/pwm-tiecap.c +++ b/drivers/pwm/pwm-tiecap.c @@ -192,10 +192,8 @@ static int __devinit ecap_pwm_probe(struct platform_device *pdev) } pc->mmio_base = devm_request_and_ioremap(&pdev->dev, r); - if (!pc->mmio_base) { - dev_err(&pdev->dev, "failed to ioremap() registers\n"); + if (!pc->mmio_base) return -EADDRNOTAVAIL; - } ret = pwmchip_add(&pc->chip); if (ret < 0) { |
