summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2019-06-03 16:34:30 -0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-06-17 21:06:44 +0100
commitfe93116459717eb363713b2e272006a46e914733 (patch)
tree00fa75fff6f0f6d7ae57cd2678d9194624da1cc8 /drivers/iio
parent677f16813a9245d02247d1379c8c535e361b7d0b (diff)
downloadlinux-fe93116459717eb363713b2e272006a46e914733.tar.bz2
iio: imx7d_adc: 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: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/imx7d_adc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/iio/adc/imx7d_adc.c b/drivers/iio/adc/imx7d_adc.c
index 958a34dd88ac..3327994fce3a 100644
--- a/drivers/iio/adc/imx7d_adc.c
+++ b/drivers/iio/adc/imx7d_adc.c
@@ -497,11 +497,8 @@ static int imx7d_adc_probe(struct platform_device *pdev)
info->dev = dev;
info->regs = devm_platform_ioremap_resource(pdev, 0);
- if (IS_ERR(info->regs)) {
- ret = PTR_ERR(info->regs);
- dev_err(dev, "Failed to remap adc memory, err = %d\n", ret);
- return ret;
- }
+ if (IS_ERR(info->regs))
+ return PTR_ERR(info->regs);
irq = platform_get_irq(pdev, 0);
if (irq < 0) {