From 89548c3175d44ce5b51975dbe7829314f84de040 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Tue, 4 Dec 2012 00:16:18 -0500 Subject: [PATCH] --- yaml --- r: 354785 b: refs/heads/master c: 074d35cebe96da07ac07f78118bc6a09e60350b5 h: refs/heads/master i: 354783: a4654418e526f74431286864b2f18fa905d32cdc 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 08b63f4df82d..bc429c3d1c34 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 463dcc42e4832150eb3de804682b924f9b73a91a +refs/heads/master: 074d35cebe96da07ac07f78118bc6a09e60350b5 diff --git a/trunk/drivers/tty/hvc/hvsi.c b/trunk/drivers/tty/hvc/hvsi.c index dc591290120b..ef95a154854a 100644 --- a/trunk/drivers/tty/hvc/hvsi.c +++ b/trunk/drivers/tty/hvc/hvsi.c @@ -1183,9 +1183,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;