svn commit: r236670 - head/sys/dev/ae

Sergey Kandaurov pluknet at FreeBSD.org
Wed Jun 6 09:07:51 UTC 2012


Author: pluknet
Date: Wed Jun  6 09:07:50 2012
New Revision: 236670
URL: http://svn.freebsd.org/changeset/base/236670

Log:
  Fix the build.

Modified:
  head/sys/dev/ae/if_ae.c

Modified: head/sys/dev/ae/if_ae.c
==============================================================================
--- head/sys/dev/ae/if_ae.c	Wed Jun  6 08:58:31 2012	(r236669)
+++ head/sys/dev/ae/if_ae.c	Wed Jun  6 09:07:50 2012	(r236670)
@@ -1381,7 +1381,7 @@ ae_pm_init(ae_softc_t *sc)
 	/*
 	 * Configure PME.
 	 */
-	if (pci_find_cap(dev, PCIY_PMG, &pmc) == 0) {
+	if (pci_find_cap(sc->dev, PCIY_PMG, &pmc) == 0) {
 		pmstat = pci_read_config(sc->dev, pmc + PCIR_POWER_STATUS, 2);
 		pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE);
 		if ((ifp->if_capenable & IFCAP_WOL) != 0)


More information about the svn-src-all mailing list