Fix the build.
This commit is contained in:
parent
d13b0c3f27
commit
4fb52be9c2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user