]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: pressure: abp2030pa: remove error message
authorPetre Rodan <petre.rodan@subdimension.ro>
Wed, 14 Jan 2026 07:51:38 +0000 (09:51 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 14 Jan 2026 08:52:09 +0000 (08:52 +0000)
Do not print a duplicate error message if devm_request_irq() fails.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/abp2030pa.c

index be11e28208eca4ef25bf5b315eee68f917acae9a..4ca056a73cefcee429bcce032bd96d17f75521fc 100644 (file)
@@ -523,7 +523,7 @@ int abp2_common_probe(struct device *dev, const struct abp2_ops *ops, int irq)
                ret = devm_request_irq(dev, irq, abp2_eoc_handler, IRQF_ONESHOT,
                                       dev_name(dev), data);
                if (ret)
-                       return dev_err_probe(dev, ret, "request irq %d failed\n", data->irq);
+                       return ret;
        }
 
        ret = devm_iio_triggered_buffer_setup(dev, indio_dev, NULL,