Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander Sverdlin and committed by
Greg Kroah-Hartman
0b60525b 62dcd9c5

+2 -2
+2 -2
drivers/tty/serial/uartlite.c
··· 773 773 return -ENODEV; 774 774 775 775 irq = platform_get_irq(pdev, 0); 776 - if (irq <= 0) 777 - return -ENXIO; 776 + if (irq < 0) 777 + return irq; 778 778 779 779 pdata->clk = devm_clk_get(&pdev->dev, "s_axi_aclk"); 780 780 if (IS_ERR(pdata->clk)) {