From 23175e013f29eb5d54b96fba48352515dc1252aa Mon Sep 17 00:00:00 2001 From: neel Date: Wed, 10 Oct 2012 00:06:31 +0000 Subject: Grab the softc from the ACPI host-pci bridge device instead of from the pci endpoint device. Reviewed by: jhb --- sys/dev/acpica/acpi_pcib_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/acpica') 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. */ -- cgit v1.1