patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / sparc64 / kernel / ebus.c
index 1300827..044b858 100644 (file)
@@ -509,7 +509,7 @@ probe_interrupts:
                fill_ebus_child(node, &regs[0],
                                child, child_regs_nonstandard(dev));
 
-               while ((node = prom_getsibling(node))) {
+               while ((node = prom_getsibling(node)) != 0) {
                        child->next = ebus_alloc(sizeof(struct linux_ebus_child));
 
                        child = child->next;
@@ -611,7 +611,7 @@ void __init ebus_init(void)
                dev->bus = ebus;
                fill_ebus_device(nd, dev);
 
-               while ((nd = prom_getsibling(nd))) {
+               while ((nd = prom_getsibling(nd)) != 0) {
                        dev->next = ebus_alloc(sizeof(struct linux_ebus_device));
 
                        dev = dev->next;