From fc22fc766c69efa67b68af47f0fb73b87630bf3a Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Mon, 3 Dec 2012 19:16:18 +0000 Subject: [PATCH] --- yaml --- r: 356360 b: refs/heads/master c: 7943b310001fd7858154bc3af2a78e0dd6bfea03 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/tty/hvc/hvsi.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 1b2b3c843657..9f780feca397 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a413f474a0ff29404bf1af5c024215476ed6ca01 +refs/heads/master: 7943b310001fd7858154bc3af2a78e0dd6bfea03 diff --git a/trunk/drivers/tty/hvc/hvsi.c b/trunk/drivers/tty/hvc/hvsi.c index 68357a6e4de9..60ecdd5ca375 100644 --- a/trunk/drivers/tty/hvc/hvsi.c +++ b/trunk/drivers/tty/hvc/hvsi.c @@ -1187,9 +1187,7 @@ static int __init hvsi_console_init(void) hvsi_wait = poll_for_state; /* no irqs yet; must poll */ /* search device tree for vty nodes */ - for (vty = of_find_compatible_node(NULL, "serial", "hvterm-protocol"); - vty != NULL; - vty = of_find_compatible_node(vty, "serial", "hvterm-protocol")) { + for_each_compatible_node(vty, "serial", "hvterm-protocol") { struct hvsi_struct *hp; const uint32_t *vtermno, *irq;