svn commit: r241386 - head/sys/dev/acpica

Neel Natu neel at FreeBSD.org
Wed Oct 10 00:06:32 UTC 2012


Author: neel
Date: Wed Oct 10 00:06:31 2012
New Revision: 241386
URL: http://svn.freebsd.org/changeset/base/241386

Log:
  Grab the softc from the ACPI host-pci bridge device instead of from the pci
  endpoint device.
  
  Reviewed by:	jhb

Modified:
  head/sys/dev/acpica/acpi_pcib_acpi.c

Modified: head/sys/dev/acpica/acpi_pcib_acpi.c
==============================================================================
--- head/sys/dev/acpica/acpi_pcib_acpi.c	Tue Oct  9 20:07:24 2012	(r241385)
+++ head/sys/dev/acpica/acpi_pcib_acpi.c	Wed Oct 10 00:06:31 2012	(r241386)
@@ -502,7 +502,7 @@ acpi_pcib_map_msi(device_t pcib, device_
 	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. */


More information about the svn-src-head mailing list