Date: Mon, 23 Mar 2009 00:27:47 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r190303 - head/sys/dev/age Message-ID: <200903230027.n2N0Rlbs088807@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yongari Date: Mon Mar 23 00:27:46 2009 New Revision: 190303 URL: http://svn.freebsd.org/changeset/base/190303 Log: Fix inversed logic. pci_find_extcap() returns 0 when it finds specified capability. Modified: head/sys/dev/age/if_age.c Modified: head/sys/dev/age/if_age.c ============================================================================== --- head/sys/dev/age/if_age.c Mon Mar 23 00:15:38 2009 (r190302) +++ head/sys/dev/age/if_age.c Mon Mar 23 00:27:46 2009 (r190303) @@ -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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903230027.n2N0Rlbs088807>