patch-2.1.115 linux/arch/sparc64/kernel/auxio.c

Next file: linux/arch/sparc64/kernel/central.c
Previous file: linux/arch/sparc64/kernel/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.114/linux/arch/sparc64/kernel/auxio.c linux/arch/sparc64/kernel/auxio.c
@@ -42,9 +42,13 @@
 		struct linux_ebus_device *edev = 0;
 		unsigned long led_auxio;
 
-		for_all_ebusdev(edev, ebus)
-			if (!strcmp(edev->prom_name, "auxio"))
-				break;
+		for_each_ebus(ebus) {
+			for_each_ebusdev(edev, ebus) {
+				if (!strcmp(edev->prom_name, "auxio"))
+					goto ebus_done;
+			}
+		}
+	ebus_done:
 
 		if (edev) {
 			if (check_region(edev->base_address[0],

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov