diff options
-rw-r--r-- | drivers/tty/hvc/hvsi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/hvc/hvsi.c b/drivers/tty/hvc/hvsi.c index 68357a6e4de9..60ecdd5ca375 100644 --- a/drivers/tty/hvc/hvsi.c +++ b/drivers/tty/hvc/hvsi.c | |||
@@ -1187,9 +1187,7 @@ static int __init hvsi_console_init(void) | |||
1187 | hvsi_wait = poll_for_state; /* no irqs yet; must poll */ | 1187 | hvsi_wait = poll_for_state; /* no irqs yet; must poll */ |
1188 | 1188 | ||
1189 | /* search device tree for vty nodes */ | 1189 | /* search device tree for vty nodes */ |
1190 | for (vty = of_find_compatible_node(NULL, "serial", "hvterm-protocol"); | 1190 | for_each_compatible_node(vty, "serial", "hvterm-protocol") { |
1191 | vty != NULL; | ||
1192 | vty = of_find_compatible_node(vty, "serial", "hvterm-protocol")) { | ||
1193 | struct hvsi_struct *hp; | 1191 | struct hvsi_struct *hp; |
1194 | const uint32_t *vtermno, *irq; | 1192 | const uint32_t *vtermno, *irq; |
1195 | 1193 | ||