diff options
Diffstat (limited to 'sys/dev/pci/ciss_pci.c')
-rw-r--r-- | sys/dev/pci/ciss_pci.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/pci/ciss_pci.c b/sys/dev/pci/ciss_pci.c index f8d7920f55d..276e466e366 100644 --- a/sys/dev/pci/ciss_pci.c +++ b/sys/dev/pci/ciss_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ciss_pci.c,v 1.10 2006/09/20 19:45:16 brad Exp $ */ +/* $OpenBSD: ciss_pci.c,v 1.11 2008/05/23 08:49:27 brad Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -101,14 +101,9 @@ ciss_pci_attach(struct device *parent, struct device *self, void *aux) pcireg_t reg; memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, CISS_BAR); - if (memtype != (PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT) && - memtype != (PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_64BIT)) { - printf(": wrong BAR type\n"); - return; - } if (pci_mapreg_map(pa, CISS_BAR, memtype, 0, &sc->iot, &sc->ioh, NULL, &size, 0)) { - printf(": can't map controller i/o space\n"); + printf(": can't map controller mem space\n"); return; } sc->dmat = pa->pa_dmat; |