]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: adc: ti-ads1119: Drop redundant error message
authorFelix Gu <ustc.gu@gmail.com>
Mon, 2 Mar 2026 17:07:29 +0000 (01:07 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 2 Mar 2026 19:49:47 +0000 (19:49 +0000)
devm_request_threaded_irq already prints an error message when failure,
so the error message is redundant, drop it.

Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads1119.c

index c9cedc59cdcdb1cdc0563455d6b5c75270960dc8..1157e606bc64a1bad7305dfc5826c9c7617c31be 100644 (file)
@@ -740,8 +740,7 @@ static int ads1119_probe(struct i2c_client *client)
                                                NULL, IRQF_ONESHOT,
                                                "ads1119", indio_dev);
                if (ret)
-                       return dev_err_probe(dev, ret,
-                                            "Failed to allocate irq\n");
+                       return ret;
 
                st->trig = devm_iio_trigger_alloc(dev, "%s-dev%d",
                                                  indio_dev->name,