summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2012-10-10 00:06:31 +0000
committerneel <neel@FreeBSD.org>2012-10-10 00:06:31 +0000
commit23175e013f29eb5d54b96fba48352515dc1252aa (patch)
tree807ce03bf8c08616d7db9bb1609583f3c5a928d3 /sys/dev/acpica
parentd5a8a69ff36ea2632f2a367ff6aa9f0c4dbca708 (diff)
downloadFreeBSD-src-23175e013f29eb5d54b96fba48352515dc1252aa.zip
FreeBSD-src-23175e013f29eb5d54b96fba48352515dc1252aa.tar.gz
Grab the softc from the ACPI host-pci bridge device instead of from the pci
endpoint device. Reviewed by: jhb
Diffstat (limited to 'sys/dev/acpica')
-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