summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjakemsr <jakemsr@openbsd.org>2010-08-03 22:58:58 +0000
committerjakemsr <jakemsr@openbsd.org>2010-08-03 22:58:58 +0000
commit2a25c9c346c0ffc549a6fee2e11977fcc5e71cf3 (patch)
tree444982452d60cad6a18004121f957ffbaa351fac
parentRemove old code that figures out the PCI bus number. The new code gets some (diff)
downloadwireguard-openbsd-2a25c9c346c0ffc549a6fee2e11977fcc5e71cf3.tar.xz
wireguard-openbsd-2a25c9c346c0ffc549a6fee2e11977fcc5e71cf3.zip
if interrupt mapping fails, say so
ok deraadt
-rw-r--r--sys/dev/pci/auich.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c
index abbc9533477..dedaedb6885 100644
--- a/sys/dev/pci/auich.c
+++ b/sys/dev/pci/auich.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auich.c,v 1.83 2010/07/15 03:43:11 jakemsr Exp $ */
+/* $OpenBSD: auich.c,v 1.84 2010/08/03 22:58:58 jakemsr Exp $ */
/*
* Copyright (c) 2000,2001 Michael Shalayeff
@@ -433,6 +433,7 @@ auich_attach(parent, self, aux)
sc->dmat = pa->pa_dmat;
if (pci_intr_map(pa, &ih)) {
+ printf(": can't map interrupt\n");
bus_space_unmap(sc->iot, sc->aud_ioh, aud_size);
bus_space_unmap(sc->iot_mix, sc->mix_ioh, mix_size);
return;