diff options
author | Ding Xiang <dingxiang@cmss.chinamobile.com> | 2019-07-18 15:51:11 +0800 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-09-21 00:26:16 +0200 |
commit | f6abac0379b8368519f28016c8c8821b8bd17f5e (patch) | |
tree | 9ea7f1a6947d40c9ac1baaa12561759a67f6e967 /drivers/pwm | |
parent | a315614b68993318f6913cc28b9b4e472ebbdf26 (diff) | |
download | linux-f6abac0379b8368519f28016c8c8821b8bd17f5e.tar.gz linux-f6abac0379b8368519f28016c8c8821b8bd17f5e.tar.bz2 linux-f6abac0379b8368519f28016c8c8821b8bd17f5e.zip |
pwm: sifive: Remove redundant error message
devm_ioremap_resource() already outputs an error message, so remove the
extra error message on failure.
Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-sifive.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-sifive.c b/drivers/pwm/pwm-sifive.c index a7c107f19e66..bb4f02ce4f94 100644 --- a/drivers/pwm/pwm-sifive.c +++ b/drivers/pwm/pwm-sifive.c @@ -250,10 +250,8 @@ static int pwm_sifive_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); ddata->regs = devm_ioremap_resource(dev, res); - if (IS_ERR(ddata->regs)) { - dev_err(dev, "Unable to map IO resources\n"); + if (IS_ERR(ddata->regs)) return PTR_ERR(ddata->regs); - } ddata->clk = devm_clk_get(dev, NULL); if (IS_ERR(ddata->clk)) { |