summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-06-19 19:03:26 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-06-19 19:03:26 +0000
commit45bf5df01b9b7d9be14188407c93a7475b75410b (patch)
treef0dad5263fe1c05dc023771d7d2d9c1505348d04 /sys/dev
parent8cdbd2a04a213bb577267e79f472e2a2c3492a2d (diff)
move initialization a bit later.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pcmcia/pcmcia_cis.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pcmcia/pcmcia_cis.c b/sys/dev/pcmcia/pcmcia_cis.c
index cf62854cad9..94aa293a953 100644
--- a/sys/dev/pcmcia/pcmcia_cis.c
+++ b/sys/dev/pcmcia/pcmcia_cis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcmcia_cis.c,v 1.7 2002/03/14 01:27:01 millert Exp $ */
+/* $OpenBSD: pcmcia_cis.c,v 1.8 2002/06/19 19:03:25 fgsch Exp $ */
/* $NetBSD: pcmcia_cis.c,v 1.9 1998/08/22 23:41:48 msaitoh Exp $ */
/*
@@ -125,8 +125,6 @@ pcmcia_scan_cis(dev, fct, arg)
#endif
return -1;
}
- tuple.memt = pcmh.memt;
- tuple.memh = pcmh.memh;
/* initialize state for the primary tuple chain */
if (pcmcia_chip_mem_map(pct, pch, PCMCIA_MEM_ATTR, 0,
@@ -138,6 +136,9 @@ pcmcia_scan_cis(dev, fct, arg)
#endif
return -1;
}
+ tuple.memt = pcmh.memt;
+ tuple.memh = pcmh.memh;
+
DPRINTF(("cis mem map %x\n", (unsigned int) tuple.memh));
tuple.mult = 2;