From: Sepherosa Ziehau Date: Mon, 31 Oct 2005 13:08:35 +0000 (+0000) Subject: - hide ukphy_probe(), since it is not intended to be used outside of ukphy.c X-Git-Tag: v2.0.1~5739 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/21a69bda76bfe3ef53e75b5f5904c9d785de2a97 - hide ukphy_probe(), since it is not intended to be used outside of ukphy.c - staticize ukphy_service(), which is only used in ukphy.c - ANSIfy --- diff --git a/sys/dev/netif/mii_layer/miivar.h b/sys/dev/netif/mii_layer/miivar.h index 829e006783..167b438cd0 100644 --- a/sys/dev/netif/mii_layer/miivar.h +++ b/sys/dev/netif/mii_layer/miivar.h @@ -37,7 +37,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/dev/mii/miivar.h,v 1.3.2.1 2000/12/12 19:29:14 wpaul Exp $ - * $DragonFly: src/sys/dev/netif/mii_layer/miivar.h,v 1.10 2005/10/31 10:09:11 sephe Exp $ + * $DragonFly: src/sys/dev/netif/mii_layer/miivar.h,v 1.11 2005/10/31 13:08:35 sephe Exp $ */ #ifndef _DEV_MII_MIIVAR_H_ @@ -176,7 +176,6 @@ void mii_phy_auto_stop (struct mii_softc *); void mii_phy_reset (struct mii_softc *); void ukphy_status (struct mii_softc *); -int ukphy_probe (device_t); int ukphy_attach (device_t); int ukphy_detach (device_t); diff --git a/sys/dev/netif/mii_layer/ukphy.c b/sys/dev/netif/mii_layer/ukphy.c index c0335fa559..578da3d5f9 100644 --- a/sys/dev/netif/mii_layer/ukphy.c +++ b/sys/dev/netif/mii_layer/ukphy.c @@ -37,7 +37,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/dev/mii/ukphy.c,v 1.2.2.2 2002/11/08 21:53:49 semenu Exp $ - * $DragonFly: src/sys/dev/netif/mii_layer/ukphy.c,v 1.8 2005/10/24 16:55:40 dillon Exp $ + * $DragonFly: src/sys/dev/netif/mii_layer/ukphy.c,v 1.9 2005/10/31 13:08:35 sephe Exp $ */ /* @@ -91,6 +91,9 @@ #include "miibus_if.h" +static int ukphy_service(struct mii_softc *, struct mii_data *, int); +static int ukphy_probe(device_t); + static device_method_t ukphy_methods[] = { /* device interface */ DEVMETHOD(device_probe, ukphy_probe), @@ -110,9 +113,7 @@ static driver_t ukphy_driver = { DRIVER_MODULE(ukphy, miibus, ukphy_driver, ukphy_devclass, 0, 0); -int ukphy_service (struct mii_softc *, struct mii_data *, int); - -int +static int ukphy_probe(device_t dev) { @@ -191,11 +192,8 @@ ukphy_detach(device_t dev) return(0); } -int -ukphy_service(sc, mii, cmd) - struct mii_softc *sc; - struct mii_data *mii; - int cmd; +static int +ukphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) { struct ifmedia_entry *ife = mii->mii_media.ifm_cur; int reg;