summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nfe.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_nfe.c')
-rw-r--r--sys/dev/pci/if_nfe.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c
index c9ddf1382bb..d41d1e8ac76 100644
--- a/sys/dev/pci/if_nfe.c
+++ b/sys/dev/pci/if_nfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nfe.c,v 1.78 2008/05/19 01:12:41 fgsch Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.79 2008/05/23 08:49:27 brad Exp $ */
/*-
* Copyright (c) 2006, 2007 Damien Bergamini <damien.bergamini@free.fr>
@@ -184,14 +184,8 @@ nfe_attach(struct device *parent, struct device *self, void *aux)
pcireg_t memtype;
memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, NFE_PCI_BA);
- 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, NFE_PCI_BA, memtype, 0, &sc->sc_memt,
- &sc->sc_memh, NULL, &memsize, 0) == 0)
- break;
- /* FALLTHROUGH */
- default:
+ if (pci_mapreg_map(pa, NFE_PCI_BA, memtype, 0, &sc->sc_memt,
+ &sc->sc_memh, NULL, &memsize, 0)) {
printf(": could not map mem space\n");
return;
}