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)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to