]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: xiic: remove duplicate error message
authorAbdurrahman Hussain <abdurrahman@nexthop.ai>
Mon, 23 Feb 2026 15:59:17 +0000 (15:59 +0000)
committerAndi Shyti <andi.shyti@kernel.org>
Wed, 1 Apr 2026 23:27:30 +0000 (01:27 +0200)
The devm_request_threaded_irq() already prints an error message. Remove
the duplicate.

Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260223-i2c-xiic-v12-2-b6c9ce4e4f3c@nexthop.ai
drivers/i2c/busses/i2c-xiic.c

index 65aa280f6fd944d5d32781d9a8735772a9ba526c..99286af2a0d79da7f28a748949e2aae367080942 100644 (file)
@@ -1491,11 +1491,8 @@ static int xiic_i2c_probe(struct platform_device *pdev)
        ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
                                        xiic_process, IRQF_ONESHOT,
                                        pdev->name, i2c);
-
-       if (ret < 0) {
-               dev_err_probe(&pdev->dev, ret, "Cannot claim IRQ\n");
+       if (ret)
                return ret;
-       }
 
        i2c->singlemaster =
                of_property_read_bool(pdev->dev.of_node, "single-master");