diff options
author | marius <marius@FreeBSD.org> | 2010-10-15 15:00:30 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-10-15 15:00:30 +0000 |
commit | ac757f20ddc830f07633b578212e7bed65957067 (patch) | |
tree | debadee7b9221daaf40bb137a65e66c245f99886 /sys/dev/tx | |
parent | 385153aa98ec9bc0cd0bde471d7b89b6f7304427 (diff) | |
download | FreeBSD-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/tx')
-rw-r--r-- | sys/dev/tx/if_tx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c index 3750e7b..12843ac 100644 --- a/sys/dev/tx/if_tx.c +++ b/sys/dev/tx/if_tx.c @@ -379,10 +379,10 @@ epic_attach(device_t dev) device_printf(dev, "unknown card vendor %04xh\n", sc->cardvend); /* Do ifmedia setup. */ - if (mii_phy_probe(dev, &sc->miibus, - epic_ifmedia_upd, epic_ifmedia_sts)) { - device_printf(dev, "ERROR! MII without any PHY!?\n"); - error = ENXIO; + error = mii_attach(dev, &sc->miibus, ifp, epic_ifmedia_upd, + epic_ifmedia_sts, BMSR_DEFCAPMASK, MII_PHY_ANY, MII_OFFSET_ANY, 0); + if (error != 0) { + device_printf(dev, "attaching PHYs failed\n"); goto fail; } |