summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>2020-11-27 11:19:53 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-04 16:51:40 +0100
commit0b60525b4e88b0ae656b89733f577a76d474f07a (patch)
tree4a110550f112bd11e8bbef6abca7345da41cfc4e /drivers/tty
parent62dcd9c59f324e484c1d655884e0101a988f6671 (diff)
downloadlinux-0b60525b4e88b0ae656b89733f577a76d474f07a.tar.gz
linux-0b60525b4e88b0ae656b89733f577a76d474f07a.tar.bz2
linux-0b60525b4e88b0ae656b89733f577a76d474f07a.zip
tty: serial: uartlite: Support probe deferral
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> Link: https://lore.kernel.org/r/20201127101953.23700-1-alexander.sverdlin@nokia.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/uartlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c
index 09379db613d8..f42ccc40ffa6 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)) {