mii_phy_dev_probe returns its third argument on match, not 0, so pass 0

in if we're going to test against 0.

Noticed by: marius@
This commit is contained in:
Warner Losh 2007-02-26 04:48:24 +00:00
parent 1ad9ee8603
commit 3a5e8cefd3

View File

@ -135,7 +135,7 @@ rlphy_attach(device_t dev)
* routine can query the proper register for speed detection.
*/
rsc = (struct rlphy_softc *)sc;
if (mii_phy_dev_probe(dev, rlphys, BUS_PROBE_DEFAULT) == 0)
if (mii_phy_dev_probe(dev, rlphys, 0) == 0)
rsc->sc_is_RTL8201L++;
/*