mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 16:07:17 -04:00
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:
committed by
Mauro Carvalho Chehab
parent
9e5fa4e1e5
commit
2ac36fd574
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user