Fix inversed logic. pci_find_extcap() returns 0 when it finds

specified capability.
This commit is contained in:
Pyun YongHyeon 2009-03-23 00:27:46 +00:00
parent 3f935cf342
commit df284b3c3a

View File

@ -1369,7 +1369,7 @@ age_setwol(struct age_softc *sc)
AGE_LOCK_ASSERT(sc);
if (pci_find_extcap(sc->age_dev, PCIY_PMG, &pmc) == 0) {
if (pci_find_extcap(sc->age_dev, PCIY_PMG, &pmc) != 0) {
CSR_WRITE_4(sc, AGE_WOL_CFG, 0);
/*
* No PME capability, PHY power down.