LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] uio: uio_pdrv_genirq: Do not log an error when deferring probe routine.
@ 2020-01-08  0:16 Oscar Ravadilla
  0 siblings, 0 replies; only message in thread
From: Oscar Ravadilla @ 2020-01-08  0:16 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, Chris Packham, Oscar Ravadilla

When deferring the probe routine just return without displaying an
error.

Signed-off-by: Oscar Ravadilla <oscar.ravadilla@alliedtelesis.co.nz>
---
 drivers/uio/uio_pdrv_genirq.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
index 1303b165055b..fc25ce90da3b 100644
--- a/drivers/uio/uio_pdrv_genirq.c
+++ b/drivers/uio/uio_pdrv_genirq.c
@@ -156,6 +156,8 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
 		uioinfo->irq = ret;
 		if (ret == -ENXIO && pdev->dev.of_node)
 			uioinfo->irq = UIO_IRQ_NONE;
+		else if (ret == -EPROBE_DEFER)
+			return ret;
 		else if (ret < 0) {
 			dev_err(&pdev->dev, "failed to get IRQ\n");
 			return ret;
-- 
2.23.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-08  0:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08  0:16 [PATCH] uio: uio_pdrv_genirq: Do not log an error when deferring probe routine Oscar Ravadilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).