svn commit: r239689 - head/sys/dev/fdt

Oleksandr Tymoshenko gonzo at FreeBSD.org
Sat Aug 25 20:18:13 UTC 2012


Author: gonzo
Date: Sat Aug 25 20:18:12 2012
New Revision: 239689
URL: http://svn.freebsd.org/changeset/base/239689

Log:
  Do not swap byte order if we assign default value for intr_cells

Modified:
  head/sys/dev/fdt/fdt_common.c

Modified: head/sys/dev/fdt/fdt_common.c
==============================================================================
--- head/sys/dev/fdt/fdt_common.c	Sat Aug 25 20:13:19 2012	(r239688)
+++ head/sys/dev/fdt/fdt_common.c	Sat Aug 25 20:18:12 2012	(r239689)
@@ -524,7 +524,8 @@ fdt_intr_to_rl(phandle_t node, struct re
 		debugf("no intr-cells defined, defaulting to 1\n");
 		intr_cells = 1;
 	}
-	intr_cells = fdt32_to_cpu(intr_cells);
+	else 
+		intr_cells = fdt32_to_cpu(intr_cells);
 
 	intr_num = OF_getprop_alloc(node, "interrupts",
 	    intr_cells * sizeof(pcell_t), (void **)&intr);


More information about the svn-src-all mailing list