All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tty: serial: uartlite: Support probe deferral
@ 2020-11-27 10:19 Alexander A Sverdlin
  0 siblings, 0 replies; only message in thread
From: Alexander A Sverdlin @ 2020-11-27 10:19 UTC (permalink / raw)
  To: linux-serial
  Cc: Alexander Sverdlin, Peter Korsgaard, Greg Kroah-Hartman,
	Jiri Slaby, linux-kernel

From: Alexander Sverdlin <alexander.sverdlin@nokia.com>

Give uartlite a chance to be probed when IRQ controller will be finally
available and return potential -EPROBE_DEFER as-is. The condition "<="
has been changed to "<" to follow the recommendation in the header of
platform_get_irq().

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
---
 drivers/tty/serial/uartlite.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c
index 09379db..f42ccc4 100644
--- a/drivers/tty/serial/uartlite.c
+++ b/drivers/tty/serial/uartlite.c
@@ -773,8 +773,8 @@ static int ulite_probe(struct platform_device *pdev)
 		return -ENODEV;
 
 	irq = platform_get_irq(pdev, 0);
-	if (irq <= 0)
-		return -ENXIO;
+	if (irq < 0)
+		return irq;
 
 	pdata->clk = devm_clk_get(&pdev->dev, "s_axi_aclk");
 	if (IS_ERR(pdata->clk)) {
-- 
2.10.2


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

only message in thread, other threads:[~2020-11-27 10:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-27 10:19 [PATCH] tty: serial: uartlite: Support probe deferral Alexander A Sverdlin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.