diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-03-27 23:36:37 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-03-27 23:36:37 +0000 |
commit | 2e9069b23f7cfa36e541a73397a96e599d52777d (patch) | |
tree | c0f0e9773b1606b04f4084ef86749bc2ce924267 /sys/dev/cardbus/puc_cardbus.c | |
parent | 43244f2d452e5f58107d33de632d57f4054cdc8e (diff) |
replace a bunch of BAR wrangling code with calls to the pci
code it was originally copied from.
ok kettenis@
Diffstat (limited to 'sys/dev/cardbus/puc_cardbus.c')
-rw-r--r-- | sys/dev/cardbus/puc_cardbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cardbus/puc_cardbus.c b/sys/dev/cardbus/puc_cardbus.c index c4ecbdd20fd..f0dc17dc338 100644 --- a/sys/dev/cardbus/puc_cardbus.c +++ b/sys/dev/cardbus/puc_cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: puc_cardbus.c,v 1.6 2010/03/27 21:40:13 jsg Exp $ */ +/* $OpenBSD: puc_cardbus.c,v 1.7 2010/03/27 23:36:36 jsg Exp $ */ /* * Copyright (c) 2006 Michael Shalayeff @@ -107,7 +107,7 @@ puc_cardbus_attach(struct device *parent, struct device *self, void *aux) sc->sc_bar_mappings[i].mapped = 0; bar = PCI_MAPREG_START + 4 * i; - if (!cardbus_mapreg_probe(pc, ca->ca_tag, bar, &type)) + if (!pci_mapreg_probe(pc, ca->ca_tag, bar, &type)) continue; if (!(sc->sc_bar_mappings[i].mapped = !Cardbus_mapreg_map(ct, |