]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: pressure: mprls0025pa: remove error message
authorPetre Rodan <petre.rodan@subdimension.ro>
Sun, 18 Jan 2026 11:19:39 +0000 (13:19 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 22 Jan 2026 20:53:18 +0000 (20:53 +0000)
Do not print a duplicate error message if devm_request_irq() fails.

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

index 587d0dcad89b611f7051da614fd44f04a343c358..e8c495f336ff416ce94e1e31a9573f809f9e5649 100644 (file)
@@ -413,8 +413,7 @@ int mpr_common_probe(struct device *dev, const struct mpr_ops *ops, int irq)
                ret = devm_request_irq(dev, data->irq, mpr_eoc_handler, 0,
                                       dev_name(dev), data);
                if (ret)
-                       return dev_err_probe(dev, ret,
-                                         "request irq %d failed\n", data->irq);
+                       return ret;
        }
 
        data->gpiod_reset = devm_gpiod_get_optional(dev, "reset",