summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2012-10-10 00:11:06 +0000
committerneel <neel@FreeBSD.org>2012-10-10 00:11:06 +0000
commit364c9ec6f987023beee32dfea2f46fe9041895e2 (patch)
tree163bc9eda164a6eb3381f8b889b58f453c9876be
parentca6e3cf9305492be70c87be05119c96a49cbecf9 (diff)
downloadFreeBSD-src-364c9ec6f987023beee32dfea2f46fe9041895e2.zip
FreeBSD-src-364c9ec6f987023beee32dfea2f46fe9041895e2.tar.gz
Grab the softc from the ACPI host-pci bridge device instead of from the pci
endpoint device. Reviewed by: jhb
-rw-r--r--sys/dev/acpica/acpi_pcib_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c
index 8e2cfea..e93aec9 100644
--- a/sys/dev/acpica/acpi_pcib_acpi.c
+++ b/sys/dev/acpica/acpi_pcib_acpi.c
@@ -502,7 +502,7 @@ acpi_pcib_map_msi(device_t pcib, device_t dev, int irq, uint64_t *addr,
if (error)
return (error);
- sc = device_get_softc(dev);
+ sc = device_get_softc(pcib);
if (sc->ap_addr == -1)
return (0);
/* XXX: Assumes all bridges are on bus 0. */
OpenPOWER on IntegriCloud