diff options
author | neel <neel@FreeBSD.org> | 2012-10-10 00:06:31 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2012-10-10 00:06:31 +0000 |
commit | 23175e013f29eb5d54b96fba48352515dc1252aa (patch) | |
tree | 807ce03bf8c08616d7db9bb1609583f3c5a928d3 | |
parent | d5a8a69ff36ea2632f2a367ff6aa9f0c4dbca708 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/dev/acpica/acpi_pcib_acpi.c | 2 |
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. */ |