media: stm32: dcmi: Remove redundant dev_err call

devm_ioremap_resource() prints error message in itself. Remove the
dev_err call to avoid redundant error message.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Acked-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
Shang XiaoJing
2022-09-23 18:07:08 +08:00
committed by Hans Verkuil
parent 1733197b71
commit 062fa935e4

View File

@@ -1997,10 +1997,8 @@ static int dcmi_probe(struct platform_device *pdev)
}
dcmi->regs = devm_ioremap_resource(&pdev->dev, dcmi->res);
if (IS_ERR(dcmi->regs)) {
dev_err(&pdev->dev, "Could not map registers\n");
if (IS_ERR(dcmi->regs))
return PTR_ERR(dcmi->regs);
}
mclk = devm_clk_get(&pdev->dev, "mclk");
if (IS_ERR(mclk)) {