diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-13 23:28:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-13 23:28:40 +0100 |
commit | 4c516896323109a5096f5049b3dbf04ad99af54d (patch) | |
tree | 83c6b6728c6326ee83c270542883d2ccd172b6fd /drivers/tty | |
parent | Revert "serial-uartlite: Do not use static struct uart_driver out of probe()" (diff) | |
download | linux-4c516896323109a5096f5049b3dbf04ad99af54d.tar.xz linux-4c516896323109a5096f5049b3dbf04ad99af54d.zip |
Revert "serial-uartlite: Add get serial id if not provided"
This reverts commit 62104b280a5a5d999c562d8e8f4c6c4eb97fb013.
As Johan says, this driver needs a lot more work and these changes are
only going in the wrong direction:
https://lkml.kernel.org/r/20190523091839.GC568@localhost
Reported-by: Johan Hovold <johan@kernel.org>
Cc: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/uartlite.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index 2e93af7893e6..7c68937abb43 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -763,13 +763,6 @@ static int ulite_probe(struct platform_device *pdev) if (prop) id = be32_to_cpup(prop); #endif - if (id < 0) { - /* Look for a serialN alias */ - id = of_alias_get_id(pdev->dev.of_node, "serial"); - if (id < 0) - id = 0; - } - if (!ulite_uart_driver.state) { dev_dbg(&pdev->dev, "uartlite: calling uart_register_driver()\n"); ret = uart_register_driver(&ulite_uart_driver); |