media: imx7-media-csi: Remove unneeded error message

In case of ioremap failure, the core code will take care of printing
the error message, so there is no need for having a local error
message in the driver.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Fabio Estevam
2019-06-01 13:51:40 -04:00
committed by Mauro Carvalho Chehab
parent 9e5fa4e1e5
commit 2ac36fd574

View File

@@ -1194,10 +1194,8 @@ static int imx7_csi_probe(struct platform_device *pdev)
}
csi->regbase = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(csi->regbase)) {
dev_err(dev, "Failed platform resources map\n");
if (IS_ERR(csi->regbase))
return PTR_ERR(csi->regbase);
}
spin_lock_init(&csi->irqlock);
mutex_init(&csi->lock);