From ac757f20ddc830f07633b578212e7bed65957067 Mon Sep 17 00:00:00 2001 From: marius Date: Fri, 15 Oct 2010 15:00:30 +0000 Subject: 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 --- sys/dev/et/if_et.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/et/if_et.c') diff --git a/sys/dev/et/if_et.c b/sys/dev/et/if_et.c index 0d0ed56..326309e 100644 --- a/sys/dev/et/if_et.c +++ b/sys/dev/et/if_et.c @@ -63,8 +63,8 @@ __FBSDID("$FreeBSD$"); #include +#include #include -#include #include #include @@ -343,10 +343,10 @@ et_attach(device_t dev) et_chip_attach(sc); - error = mii_phy_probe(dev, &sc->sc_miibus, - et_ifmedia_upd, et_ifmedia_sts); + error = mii_attach(dev, &sc->sc_miibus, ifp, et_ifmedia_upd, + et_ifmedia_sts, BMSR_DEFCAPMASK, MII_PHY_ANY, MII_OFFSET_ANY, 0); if (error) { - device_printf(dev, "can't probe any PHY\n"); + device_printf(dev, "attaching PHYs failed\n"); goto fail; } -- cgit v1.1