summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-01 21:51:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-01 21:51:13 +0000
commitc0d0e713889647f8ea991e3ad75ac8f3a45d8e32 (patch)
treeb17151750da316943a64651821b5c0c22d5f10d8 /sys/dev
parent9203c01cdd082e22f07b85f89ac776698f3e9d60 (diff)
msi interrupts working on mfi(4)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/mfi_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/mfi_pci.c b/sys/dev/pci/mfi_pci.c
index 36d9c23c2bc..beab6cd6de6 100644
--- a/sys/dev/pci/mfi_pci.c
+++ b/sys/dev/pci/mfi_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfi_pci.c,v 1.23 2010/04/01 23:19:39 jsg Exp $ */
+/* $OpenBSD: mfi_pci.c,v 1.24 2011/07/01 21:51:12 deraadt Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -167,7 +167,7 @@ mfi_pci_attach(struct device *parent, struct device *self, void *aux)
sc->sc_dmat = pa->pa_dmat;
- if (pci_intr_map(pa, &ih)) {
+ if (pci_intr_map_msi(pa, &ih) != 0 && pci_intr_map(pa, &ih) != 0) {
printf(": can't map interrupt\n");
bus_space_unmap(sc->sc_iot, sc->sc_ioh, size);
return;