Commit d21ffd93 authored by Yang Yingliang's avatar Yang Yingliang Committed by Mauro Carvalho Chehab

media: imx-pxp: remove redundant dev_err call in pxp_probe()

There is an error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 92eda6b7
...@@ -1654,11 +1654,8 @@ static int pxp_probe(struct platform_device *pdev) ...@@ -1654,11 +1654,8 @@ static int pxp_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
dev->mmio = devm_ioremap_resource(&pdev->dev, res); dev->mmio = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(dev->mmio)) { if (IS_ERR(dev->mmio))
ret = PTR_ERR(dev->mmio); return PTR_ERR(dev->mmio);
dev_err(&pdev->dev, "Failed to map register space: %d\n", ret);
return ret;
}
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) if (irq < 0)
......
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