]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
spi: dw: use the correct error msg if request_irq() fails
authorJisheng Zhang <jszhang@kernel.org>
Mon, 15 Jun 2026 04:40:36 +0000 (12:40 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 29 Jun 2026 17:27:49 +0000 (18:27 +0100)
If request_irq() fails, report "can not request IRQ" rather than "can
not get IRQ" which may be misread as platform_get_irq() failure.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://patch.msgid.link/20260615044039.9750-3-jszhang@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-core.c

index 9a85a3ce5652055ba846b7f1fc57623579d8e152..fcaf3191f381d189ec154a0aa71b6e1e46ee1252 100644 (file)
@@ -947,7 +947,7 @@ int dw_spi_add_controller(struct device *dev, struct dw_spi *dws)
        ret = request_irq(dws->irq, dw_spi_irq, IRQF_SHARED, dev_name(dev),
                          ctlr);
        if (ret < 0 && ret != -ENOTCONN) {
-               dev_err(dev, "can not get IRQ\n");
+               dev_err(dev, "can not request IRQ\n");
                goto err_free_ctlr;
        }