diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-20 20:42:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-20 20:42:17 +0000 |
commit | 40687d94e2168bf180a2ac0aff854e0249a11854 (patch) | |
tree | 6586ab58477882b06c815524d354fea6bd491001 /sys | |
parent | 0fb6dad4a0467751f1edfac989732a150c8487ca (diff) |
mii_activate() is unused
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/mii/mii.c | 36 | ||||
-rw-r--r-- | sys/dev/mii/miivar.h | 3 |
2 files changed, 2 insertions, 37 deletions
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c index 385c9c0b4d6..e6aa5442070 100644 --- a/sys/dev/mii/mii.c +++ b/sys/dev/mii/mii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mii.c,v 1.20 2009/10/13 19:33:16 pirofti Exp $ */ +/* $OpenBSD: mii.c,v 1.21 2010/04/20 20:42:16 deraadt Exp $ */ /* $NetBSD: mii.c,v 1.19 2000/02/02 17:09:44 thorpej Exp $ */ /*- @@ -148,40 +148,6 @@ mii_attach(struct device *parent, struct mii_data *mii, int capmask, } void -mii_activate(struct mii_data *mii, int act, int phyloc, int offloc) -{ - struct mii_softc *child; - - if (phyloc != MII_PHY_ANY && offloc != MII_OFFSET_ANY) - panic("mii_activate: phyloc and offloc specified"); - - if ((mii->mii_flags & MIIF_INITDONE) == 0) - return; - - for (child = LIST_FIRST(&mii->mii_phys); - child != NULL; child = LIST_NEXT(child, mii_list)) { - if (phyloc != MII_PHY_ANY || offloc != MII_OFFSET_ANY) { - if (phyloc != MII_PHY_ANY && - phyloc != child->mii_phy) - continue; - if (offloc != MII_OFFSET_ANY && - offloc != child->mii_offset) - continue; - } - switch (act) { - case DVACT_ACTIVATE: - panic("mii_activate: DVACT_ACTIVATE"); - break; - - case DVACT_DEACTIVATE: - if (config_deactivate(&child->mii_dev) != 0) - panic("%s: config_activate(%d) failed", - child->mii_dev.dv_xname, act); - } - } -} - -void mii_detach(struct mii_data *mii, int phyloc, int offloc) { struct mii_softc *child, *nchild; diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index 560b934d778..c93557e7ba6 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: miivar.h,v 1.30 2009/10/13 19:33:16 pirofti Exp $ */ +/* $OpenBSD: miivar.h,v 1.31 2010/04/20 20:42:16 deraadt Exp $ */ /* $NetBSD: miivar.h,v 1.17 2000/03/06 20:56:57 thorpej Exp $ */ /*- @@ -234,7 +234,6 @@ struct mii_media { void mii_attach(struct device *, struct mii_data *, int, int, int, int); -void mii_activate(struct mii_data *, int, int, int); void mii_detach(struct mii_data *, int, int); int mii_mediachg(struct mii_data *); |