summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2021-11-05 01:55:04 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-11-17 17:51:44 +0000
commit471d040defb243e59a2cee42069ca4e8d6d3e94b (patch)
tree9dac71dfb8c5e43cfb88f759474de9987724502f /drivers/iio
parent7721c73d8018ee8a8588ab165a34032bec27de4d (diff)
iio: adc: rzg2l_adc: Remove unnecessary print function dev_err()
The print function dev_err() is redundant because platform_get_irq() already prints an error. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Link: https://lore.kernel.org/r/20211105015504.39226-1-vulab@iscas.ac.cn Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/rzg2l_adc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/adc/rzg2l_adc.c b/drivers/iio/adc/rzg2l_adc.c
index 32fbf57c362f..9d5be52bd948 100644
--- a/drivers/iio/adc/rzg2l_adc.c
+++ b/drivers/iio/adc/rzg2l_adc.c
@@ -506,10 +506,8 @@ static int rzg2l_adc_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (irq < 0) {
- dev_err(dev, "no irq resource\n");
+ if (irq < 0)
return irq;
- }
ret = devm_request_irq(dev, irq, rzg2l_adc_isr,
0, dev_name(dev), adc);