forked from Minki/linux
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>
This commit is contained in:
parent
a315614b68
commit
f6abac0379
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user