Skip to content

Commit 4c51689

Browse files
committed
Revert "serial-uartlite: Add get serial id if not provided"
This reverts commit 62104b2. 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 <[email protected]> Cc: Shubhrajyoti Datta <[email protected]> Cc: Michal Simek <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5d8508a commit 4c51689

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/tty/serial/uartlite.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -763,13 +763,6 @@ static int ulite_probe(struct platform_device *pdev)
763763
if (prop)
764764
id = be32_to_cpup(prop);
765765
#endif
766-
if (id < 0) {
767-
/* Look for a serialN alias */
768-
id = of_alias_get_id(pdev->dev.of_node, "serial");
769-
if (id < 0)
770-
id = 0;
771-
}
772-
773766
if (!ulite_uart_driver.state) {
774767
dev_dbg(&pdev->dev, "uartlite: calling uart_register_driver()\n");
775768
ret = uart_register_driver(&ulite_uart_driver);

0 commit comments

Comments
 (0)