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) | |
Notes
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 cb4f3bb817f38..1169cb79aa66f 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; } |
