diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2011-05-03 19:51:29 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2011-05-03 19:51:29 +0000 |
| commit | 3fcb7a5365f9de7824a2b5f8e8ab159c8d3d79a0 (patch) | |
| tree | fe53a4391d1d2bae36941fd16b2470c7f5559e9f /sys/dev/bfe | |
| parent | 5b5140322dc804072d957f1157ac0e4ec6261e7b (diff) | |
Notes
Diffstat (limited to 'sys/dev/bfe')
| -rw-r--r-- | sys/dev/bfe/if_bfe.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index f384f6de9ee8..7f970f4ac4c6 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -1736,18 +1736,15 @@ bfe_ifmedia_upd(struct ifnet *ifp) { struct bfe_softc *sc; struct mii_data *mii; + struct mii_softc *miisc; int error; sc = ifp->if_softc; BFE_LOCK(sc); mii = device_get_softc(sc->bfe_miibus); - if (mii->mii_instance) { - struct mii_softc *miisc; - for (miisc = LIST_FIRST(&mii->mii_phys); miisc != NULL; - miisc = LIST_NEXT(miisc, mii_list)) - mii_phy_reset(miisc); - } + LIST_FOREACH(miisc, &mii->mii_phys, mii_list) + PHY_RESET(miisc); error = mii_mediachg(mii); BFE_UNLOCK(sc); |
