Message ID | 20241004094234.268301-2-u.kleine-koenig@baylibre.com |
---|---|
State | New |
Headers | show |
Series | spi: Provide defer reason if getting irq during probe fails | expand |
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index c1dad30a4528..dba202f8a525 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -419,7 +419,7 @@ static int spi_probe(struct device *dev) if (dev->of_node) { spi->irq = of_irq_get(dev->of_node, 0); if (spi->irq == -EPROBE_DEFER) - return -EPROBE_DEFER; + return dev_err_probe(dev, -EPROBE_DEFER, "Failed to get irq\n"); if (spi->irq < 0) spi->irq = 0; }