Commit b11a188a authored by Qiheng Lin's avatar Qiheng Lin Committed by Krzysztof Kozlowski

memory: fsl-corenet-cf: Remove redundant dev_err call in ccf_probe()

There is a error message within devm_ioremap_resource already, so remove
the dev_err call to avoid redundant error message.
Signed-off-by: default avatarQiheng Lin <linqiheng@huawei.com>
Link: https://lore.kernel.org/r/20210331093244.3238-1-linqiheng@huawei.comSigned-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
parent e004c3e6
...@@ -192,10 +192,8 @@ static int ccf_probe(struct platform_device *pdev) ...@@ -192,10 +192,8 @@ static int ccf_probe(struct platform_device *pdev)
} }
ccf->regs = devm_ioremap_resource(&pdev->dev, r); ccf->regs = devm_ioremap_resource(&pdev->dev, r);
if (IS_ERR(ccf->regs)) { if (IS_ERR(ccf->regs))
dev_err(&pdev->dev, "%s: can't map mem resource\n", __func__);
return PTR_ERR(ccf->regs); return PTR_ERR(ccf->regs);
}
ccf->dev = &pdev->dev; ccf->dev = &pdev->dev;
ccf->info = match->data; ccf->info = match->data;
......
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