From 3a5e8cefd3b898bc091714ee20af4ac784b3bc54 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 26 Feb 2007 04:48:24 +0000 Subject: [PATCH] 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@ --- sys/dev/mii/rlphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mii/rlphy.c b/sys/dev/mii/rlphy.c index be7a0d9b163..d5fc94a1293 100644 --- a/sys/dev/mii/rlphy.c +++ b/sys/dev/mii/rlphy.c @@ -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++; /*