[PATCH] ppc64: Fix typo when parsing isa "reg" properties

Benjamin Herrenschmidt benh at kernel.crashing.org
Mon Nov 22 12:49:57 EST 2004


Hi !

This patch fixes a typo in the code that parse Open Firmware properties
for devices under an "isa" node, the incorrect struct size was used when
parsing the "reg" property of these.

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

Index: linux-work/arch/ppc64/kernel/prom.c
===================================================================
--- linux-work.orig/arch/ppc64/kernel/prom.c	2004-11-22 11:49:24.000000000 +1100
+++ linux-work/arch/ppc64/kernel/prom.c	2004-11-22 11:59:42.918494552 +1100
@@ -441,7 +441,7 @@
 	if (rp != 0 && l >= sizeof(struct isa_reg_property)) {
 		i = 0;
 		adr = (struct address_range *) mem_start;
-		while ((l -= sizeof(struct reg_property)) >= 0) {
+		while ((l -= sizeof(struct isa_reg_property)) >= 0) {
 			if (!measure_only) {
 				adr[i].space = rp[i].space;
 				adr[i].address = rp[i].address;





More information about the Linuxppc64-dev mailing list