summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_sk.c')
-rw-r--r--sys/dev/pci/if_sk.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c
index 924f330efeb..67ca21f8b1f 100644
--- a/sys/dev/pci/if_sk.c
+++ b/sys/dev/pci/if_sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sk.c,v 1.144 2008/03/02 19:16:43 brad Exp $ */
+/* $OpenBSD: if_sk.c,v 1.145 2008/05/23 08:49:27 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -1335,16 +1335,9 @@ skc_attach(struct device *parent, struct device *self, void *aux)
/*
* Map control/status registers.
*/
-
memtype = pci_mapreg_type(pc, pa->pa_tag, SK_PCI_LOMEM);
- switch (memtype) {
- case PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT:
- case PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_64BIT:
- if (pci_mapreg_map(pa, SK_PCI_LOMEM,
- memtype, 0, &sc->sk_btag, &sc->sk_bhandle,
- NULL, &size, 0) == 0)
- break;
- default:
+ if (pci_mapreg_map(pa, SK_PCI_LOMEM, memtype, 0, &sc->sk_btag,
+ &sc->sk_bhandle, NULL, &size, 0)) {
printf(": can't map mem space\n");
return;
}