]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: vio fixup
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:25:44 +0000 (18:25 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:25:44 +0000 (18:25 -0800)
From: Anton Blanchard <anton@samba.org>

vi fixup

arch/ppc64/kernel/vio.c

index 5cbcb7520cd2189f8f41e1ce1083ecf6bd5030a9..6a924ff10e69de04ae0e514652ab8ac05393a5d5 100644 (file)
@@ -149,8 +149,9 @@ vio_bus_init(void)
         * Functionally takes the place of pci_scan_bus
         */
        node_vroot = find_devices("vdevice");
-       if (!node_vroot) {
-               printk(KERN_WARNING "%s: no /vdevice node\n", __FUNCTION__);
+       if ((node_vroot == NULL) || (node_vroot->child == NULL)) {
+               printk(KERN_INFO "VIO: missing or empty /vdevice node; no virtual IO"
+                       " devices present.\n");
                return 0;
        }