Grab the softc from the ACPI host-pci bridge device instead of from the pci

endpoint device.

Reviewed by:	jhb
This commit is contained in:
Neel Natu 2012-10-10 00:06:31 +00:00
parent 675dce071a
commit af0d1ee939

View File

@ -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. */