Commit f6abac03 authored by Ding Xiang's avatar Ding Xiang Committed by Thierry Reding

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: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent a315614b
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment