summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-12-20 17:39:51 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-12-20 17:39:51 +0000
commit46d5fecc2173cf948e12fcb3dd4eb710f30f9104 (patch)
tree60ec6915a0b81bdc45322fa0920fddb1e90643bd /sys/dev/pci
parentdad137dd44d22c6404d4755a3640487e66c24707 (diff)
do not print cis for non-plx cards, because there is none
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_wi_pci.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pci/if_wi_pci.c b/sys/dev/pci/if_wi_pci.c
index 61c5b0412bc..e1ab98d2483 100644
--- a/sys/dev/pci/if_wi_pci.c
+++ b/sys/dev/pci/if_wi_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi_pci.c,v 1.9 2001/10/25 19:40:14 mickey Exp $ */
+/* $OpenBSD: if_wi_pci.c,v 1.10 2001/12/20 17:39:50 mickey Exp $ */
/*
* Copyright (c) 2001 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -239,12 +239,14 @@ wi_pci_attach(parent, self, aux)
*/
bus_space_write_1(memt, memh,
WI_PLX_COR_OFFSET, WI_PLX_COR_VALUE);
+
+ wi_attach(sc, 1);
else {
bus_space_write_2(iot, ioh, WI_PCI_COR, WI_PCI_SOFT_RESET);
DELAY(100*1000); /* 100 m sec */
bus_space_write_2(iot, ioh, WI_PCI_COR, 0x0);
DELAY(100*1000); /* 100 m sec */
- }
- wi_attach(sc, 1);
+ wi_attach(sc, 0);
+ }
}