]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/kernel/btext.c
Merge branch 'merge-fixes' into devel
[linux-2.6-omap-h63xx.git] / arch / powerpc / kernel / btext.c
index 9c74fdf29eeccc8f5c56adb7b1a5c98fc09a21e3..80e2eef05b2e6c5fd6e8fed925b8761e28a27d4d 100644 (file)
@@ -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);