summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-07-23 17:34:15 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-07-23 17:34:15 +0000
commit067a4a154586a24b0880e01be1b807462f8f7120 (patch)
treeeed25e75799a5bd9cc5d372617883180fce6a968 /sys/dev
parent91632b5c082f7fd974d5e1bea22cd9b64399dce2 (diff)
Use the proper cardbus_conf_read() rather than pci (in a cardbus driver).
ok fgsch@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cardbus/if_dc_cardbus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/cardbus/if_dc_cardbus.c b/sys/dev/cardbus/if_dc_cardbus.c
index 02c2c183c4f..891edd1a86e 100644
--- a/sys/dev/cardbus/if_dc_cardbus.c
+++ b/sys/dev/cardbus/if_dc_cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_dc_cardbus.c,v 1.11 2002/06/09 03:14:17 todd Exp $ */
+/* $OpenBSD: if_dc_cardbus.c,v 1.12 2002/07/23 17:34:14 drahn Exp $ */
#include <sys/param.h>
#include <sys/systm.h>
@@ -126,7 +126,8 @@ dc_cardbus_attach(parent, self, aux)
csc->sc_intrline = ca->ca_intrline;
- sc->dc_cachesize = pci_conf_read(cc, ca->ca_tag, DC_PCI_CFLT) & 0xFF;
+ sc->dc_cachesize = cardbus_conf_read(cc, cf, ca->ca_tag, DC_PCI_CFLT)
+ & 0xFF;
dc_cardbus_setup(csc);