diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2007-11-29 19:45:47 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-17 03:56:55 (GMT) |
commit | 3329c0d1b2de2eb9e156aa8c13ad639f54791f24 (patch) | |
tree | fd0119bd83abd0bdd870e721ab7fee9f7cb15b9c /arch/powerpc/kernel/btext.c | |
parent | 26cb7d8bbddc8338904b8810b860ccf052c761fa (diff) | |
download | linux-fsl-qoriq-3329c0d1b2de2eb9e156aa8c13ad639f54791f24.tar.xz |
[POWERPC] Use for_each macros in arch/powerpc/kernel
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/btext.c')
-rw-r--r-- | arch/powerpc/kernel/btext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index 9c74fdf..80e2eef 100644 --- a/arch/powerpc/kernel/btext.c +++ b/arch/powerpc/kernel/btext.c @@ -236,7 +236,7 @@ int __init btext_find_display(int allow_nonstdout) if (rc == 0 || !allow_nonstdout) return rc; - for (np = NULL; (np = of_find_node_by_type(np, "display"));) { + for_each_node_by_type(np, "display") { if (of_get_property(np, "linux,opened", NULL)) { printk("trying %s ...\n", np->full_name); rc = btext_initialize(np); |