Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev Reorder attach slightly to avoid uninti...
details: https://anonhg.NetBSD.org/src/rev/f867a5e9b026
branches: trunk
changeset: 352342:f867a5e9b026
user: martin <martin%NetBSD.org@localhost>
date: Sun Mar 26 18:38:33 2017 +0000
description:
Reorder attach slightly to avoid unintialized use of OF nodes.
diffstat:
sys/arch/sparc64/dev/schizo.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r af4a38fbce01 -r f867a5e9b026 sys/arch/sparc64/dev/schizo.c
--- a/sys/arch/sparc64/dev/schizo.c Sun Mar 26 18:31:52 2017 +0000
+++ b/sys/arch/sparc64/dev/schizo.c Sun Mar 26 18:38:33 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: schizo.c,v 1.37 2016/11/10 06:44:35 macallan Exp $ */
+/* $NetBSD: schizo.c,v 1.38 2017/03/26 18:38:33 martin Exp $ */
/* $OpenBSD: schizo.c,v 1.55 2008/08/18 20:29:37 brad Exp $ */
/*
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: schizo.c,v 1.37 2016/11/10 06:44:35 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: schizo.c,v 1.38 2017/03/26 18:38:33 martin Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -157,13 +157,13 @@
if (strcmp(str, "pci108e,a801") == 0)
sc->sc_tomatillo = 1;
- sc->sc_ver = prom_getpropint(sc->sc_node, "version#", 0);
-
sc->sc_dev = self;
sc->sc_node = ma->ma_node;
sc->sc_dmat = ma->ma_dmatag;
sc->sc_bustag = ma->ma_bustag;
+ sc->sc_ver = prom_getpropint(sc->sc_node, "version#", 0);
+
if (bus_space_map(sc->sc_bustag, ma->ma_reg[1].ur_paddr - 0x10000UL,
sizeof(struct schizo_regs), 0,
&sc->sc_ctrlh)) {
Home |
Main Index |
Thread Index |
Old Index