summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-10-15 15:46:58 +0000
committermarius <marius@FreeBSD.org>2010-10-15 15:46:58 +0000
commit6c3cf86b506db5c89cc9283f5a8668d22ec8ebf3 (patch)
tree9baa32c27978b7c4f817826ec8e3a17b5a85e9b0 /sys/dev/mii
parent9a2d058f58ba6ef326a46ead3e9d1fbb500664c1 (diff)
downloadFreeBSD-src-6c3cf86b506db5c89cc9283f5a8668d22ec8ebf3.zip
FreeBSD-src-6c3cf86b506db5c89cc9283f5a8668d22ec8ebf3.tar.gz
Now that all previous users of mii_phy_probe() have been converted
in r213893 and r213894 to use mii_attach() instead remove the former and along with it the "EVIL HACK". MFC after: never
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/mii.c15
-rw-r--r--sys/dev/mii/miivar.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c
index 263a18b..79378f5 100644
--- a/sys/dev/mii/mii.c
+++ b/sys/dev/mii/mii.c
@@ -454,21 +454,6 @@ mii_attach(device_t dev, device_t *miibus, struct ifnet *ifp,
return (rv);
}
-int
-mii_phy_probe(device_t dev, device_t *child, ifm_change_cb_t ifmedia_upd,
- ifm_stat_cb_t ifmedia_sts)
-{
- struct ifnet *ifp;
-
- /*
- * Note that each NIC's softc must start with an ifnet pointer.
- * XXX: EVIL HACK!
- */
- ifp = *(struct ifnet **)device_get_softc(dev);
- return (mii_attach(dev, child, ifp, ifmedia_upd, ifmedia_sts,
- BMSR_DEFCAPMASK, MII_PHY_ANY, MII_OFFSET_ANY, 0));
-}
-
/*
* Media changed; notify all PHYs.
*/
diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h
index 9196f8d..78d152a 100644
--- a/sys/dev/mii/miivar.h
+++ b/sys/dev/mii/miivar.h
@@ -232,7 +232,6 @@ void mii_down(struct mii_data *);
int mii_mediachg(struct mii_data *);
void mii_tick(struct mii_data *);
void mii_pollstat(struct mii_data *);
-int mii_phy_probe(device_t, device_t *, ifm_change_cb_t, ifm_stat_cb_t);
void mii_add_media(struct mii_softc *);
void mii_phy_add_media(struct mii_softc *);
OpenPOWER on IntegriCloud