Skip to content

Commit

Permalink
iio: imx7d_adc: Remove unneeded error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Jonathan Cameron committed Jun 17, 2019
1 parent 677f168 commit fe93116
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/iio/adc/imx7d_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe93116

Please sign in to comment.