summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPan Chuang <panchuang@vivo.com>2026-07-20 21:43:10 +0800
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-07-24 01:14:07 +0100
commitafce56f9ec3796e6ce5ebf8e10e109b3c1327174 (patch)
tree73b58fec2ed1efd282bd5d72d40ef4ec108674a7
parent82bd09ce4fd3b15680735eaeafe2e688901e3b00 (diff)
downloadlinux-afce56f9ec3796e6ce5ebf8e10e109b3c1327174.tar.gz
linux-afce56f9ec3796e6ce5ebf8e10e109b3c1327174.zip
staging: iio: adt7316: Remove redundant dev_err()
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()"), devm_request_threaded_irq() automatically logs detailed error messages on failure. Remove the now-redundant driver-specific dev_err() calls. Signed-off-by: Pan Chuang <panchuang@vivo.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
-rw-r--r--drivers/staging/iio/addac/adt7316.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c
index 59fb3bd26bc1..20f6052cc7fb 100644
--- a/drivers/staging/iio/addac/adt7316.c
+++ b/drivers/staging/iio/addac/adt7316.c
@@ -1814,11 +1814,8 @@ static int adt7316_setup_irq(struct iio_dev *indio_dev)
NULL, adt7316_event_handler,
irq_type | IRQF_ONESHOT,
indio_dev->name, indio_dev);
- if (ret) {
- dev_err(&indio_dev->dev, "failed to request irq %d\n",
- chip->bus.irq);
+ if (ret)
return ret;
- }
if (irq_type & IRQF_TRIGGER_HIGH)
chip->config1 |= ADT7316_INT_POLARITY;