Fix the build.

This commit is contained in:
Sergey Kandaurov 2012-06-06 09:07:50 +00:00
parent d13b0c3f27
commit 4fb52be9c2

View File

@ -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)