Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Aug 2012 20:18:12 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239689 - head/sys/dev/fdt
Message-ID:  <201208252018.q7PKIDZn091145@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208252018.q7PKIDZn091145>