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>
}
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);