Nokia RX-51: Fix checking if serial console was enabled
authorPali Rohár <pali@kernel.org>
Sun, 31 May 2020 22:29:10 +0000 (00:29 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Sat, 13 Jun 2020 17:42:17 +0000 (23:12 +0530)
There was incorrect logic for parsing OMAP_TAG_UART atag.

Signed-off-by: Pali Rohár <pali@kernel.org>
board/nokia/rx51/rx51.c

index 60a2e36..93d1b2f 100644 (file)
@@ -146,7 +146,7 @@ static void reuse_omap_atags(struct tag_omap *t)
                        }
                        break;
                case OMAP_TAG_UART:
-                       if (!t->u.uart.enabled_uarts)
+                       if (t->u.uart.enabled_uarts)
                                serial_was_console_enabled = 1;
                        break;
                case OMAP_TAG_SERIAL_CONSOLE: