[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200108001648.2949-1-oscar.ravadilla@alliedtelesis.co.nz>
Date: Wed, 8 Jan 2020 13:16:48 +1300
From: Oscar Ravadilla <oscar.ravadilla@...iedtelesis.co.nz>
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org,
Chris Packham <chris.packham@...iedtelesis.co.nz>,
Oscar Ravadilla <oscar.ravadilla@...iedtelesis.co.nz>
Subject: [PATCH] uio: uio_pdrv_genirq: Do not log an error when deferring probe routine.
When deferring the probe routine just return without displaying an
error.
Signed-off-by: Oscar Ravadilla <oscar.ravadilla@...iedtelesis.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
Powered by blists - more mailing lists