diff options
author | Marius Strobl <marius@FreeBSD.org> | 2010-10-15 15:00:30 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2010-10-15 15:00:30 +0000 |
commit | d6c65d276e0fbe877c04d20f4052d3428bd49b32 (patch) | |
tree | debadee7b9221daaf40bb137a65e66c245f99886 /sys/dev/wb | |
parent | 8e5d93dbb40452863b266a378868255bf986af67 (diff) | |
download | src-d6c65d276e0fbe877c04d20f4052d3428bd49b32.tar.gz src-d6c65d276e0fbe877c04d20f4052d3428bd49b32.zip |
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
Notes
Notes:
svn path=/head/; revision=213894
Diffstat (limited to 'sys/dev/wb')
-rw-r--r-- | sys/dev/wb/if_wb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/wb/if_wb.c b/sys/dev/wb/if_wb.c index cb4f3bb817f3..1169cb79aa66 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; } |