summaryrefslogtreecommitdiffstats
path: root/sys/dev/wb
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-10-15 15:00:30 +0000
committermarius <marius@FreeBSD.org>2010-10-15 15:00:30 +0000
commitac757f20ddc830f07633b578212e7bed65957067 (patch)
treedebadee7b9221daaf40bb137a65e66c245f99886 /sys/dev/wb
parent385153aa98ec9bc0cd0bde471d7b89b6f7304427 (diff)
downloadFreeBSD-src-ac757f20ddc830f07633b578212e7bed65957067.zip
FreeBSD-src-ac757f20ddc830f07633b578212e7bed65957067.tar.gz
Converted the remainder of the NIC drivers to use the mii_attach()
introduced in r213878 instead of mii_phy_probe(). Unlike r213893 these are only straight forward conversions though. Reviewed by: yongari
Diffstat (limited to 'sys/dev/wb')
-rw-r--r--sys/dev/wb/if_wb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/wb/if_wb.c b/sys/dev/wb/if_wb.c
index cb4f3bb..1169cb7 100644
--- a/sys/dev/wb/if_wb.c
+++ b/sys/dev/wb/if_wb.c
@@ -855,9 +855,10 @@ wb_attach(dev)
/*
* Do MII setup.
*/
- if (mii_phy_probe(dev, &sc->wb_miibus,
- wb_ifmedia_upd, wb_ifmedia_sts)) {
- error = ENXIO;
+ error = mii_attach(dev, &sc->wb_miibus, ifp, wb_ifmedia_upd,
+ wb_ifmedia_sts, BMSR_DEFCAPMASK, MII_PHY_ANY, MII_OFFSET_ANY, 0);
+ if (error != 0) {
+ device_printf(dev, "attaching PHYs failed\n");
goto fail;
}
OpenPOWER on IntegriCloud