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:
parent
1ad9ee8603
commit
3a5e8cefd3
@ -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++;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user