]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
power: supply: max77705: Drop duplicated IRQ error message
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Thu, 5 Mar 2026 21:45:42 +0000 (22:45 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 11 Mar 2026 05:58:00 +0000 (06:58 +0100)
Core already prints error message on devm_request_threaded_irq()
failure, so no need to do that second time.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260305-workqueue-devm-v2-3-66a38741c652@oss.qualcomm.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max77705_charger.c

index 5dd02f658f5bd34eafdd8e855b31c87161adfc7b..0dfe4ab10919f0f1e68bab4cf71bd42e91588ddb 100644 (file)
@@ -666,19 +666,15 @@ static int max77705_charger_probe(struct i2c_client *i2c)
                                        NULL, max77705_chgin_irq,
                                        IRQF_TRIGGER_NONE,
                                        "chgin-irq", chg);
-       if (ret) {
-               dev_err_probe(dev, ret, "Failed to Request chgin IRQ\n");
+       if (ret)
                goto destroy_wq;
-       }
 
        ret = devm_request_threaded_irq(dev, regmap_irq_get_virq(irq_data, MAX77705_AICL_I),
                                        NULL, max77705_aicl_irq,
                                        IRQF_TRIGGER_NONE,
                                        "aicl-irq", chg);
-       if (ret) {
-               dev_err_probe(dev, ret, "Failed to Request aicl IRQ\n");
+       if (ret)
                goto destroy_wq;
-       }
 
        ret = max77705_charger_enable(chg);
        if (ret) {