summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-08-27 21:42:14 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-08-27 21:42:14 +0000
commitda582b927d2c9456936823bcbc01798b75d98f5f (patch)
treed44a29d5e1daf1bc25f89207a1fd3fd883647e22
parentfbff2edfeb56d41a2e704d08263873e955f83dbf (diff)
it works a little better like this.
-rw-r--r--sys/dev/pci/if_bge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index 3fbb0ce33de..0384b6f29c3 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.168 2006/08/27 21:06:16 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.169 2006/08/27 21:42:13 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -2100,8 +2100,8 @@ bge_reset(struct bge_softc *sc)
CSR_WRITE_4(sc, BGE_SERDES_CFG, serdescfg);
}
- if (sc->bge_chipid != BGE_CHIPID_BCM5750_A0 &&
- if (sc->bge_flags & BGE_PCIE) {
+ if (sc->bge_flags & BGE_PCIE &&
+ sc->bge_chipid != BGE_CHIPID_BCM5750_A0) {
u_int32_t v;
/* Enable PCI Express bug fix */