summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2011-11-18 22:58:13 +0000
committermarius <marius@FreeBSD.org>2011-11-18 22:58:13 +0000
commit2692984d95814a145e0813edd59f6393992ceb11 (patch)
tree8c3036f39b0c5ac93efab54fe8e670104576d560 /sys/dev/mii
parent429acd0d9bcc80c3872f147a2e8b04bbe247124c (diff)
downloadFreeBSD-src-2692984d95814a145e0813edd59f6393992ceb11.zip
FreeBSD-src-2692984d95814a145e0813edd59f6393992ceb11.tar.gz
There's no need export the device interface methods of miibus(4).
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/mii.c9
-rw-r--r--sys/dev/mii/miivar.h4
2 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c
index dfa68c4..2c99bc0 100644
--- a/sys/dev/mii/mii.c
+++ b/sys/dev/mii/mii.c
@@ -56,10 +56,13 @@ MODULE_VERSION(miibus, 1);
#include "miibus_if.h"
+static device_attach_t miibus_attach;
static bus_child_location_str_t miibus_child_location_str;
static bus_child_pnpinfo_str_t miibus_child_pnpinfo_str;
+static device_detach_t miibus_detach;
static bus_hinted_child_t miibus_hinted_child;
static bus_print_child_t miibus_print_child;
+static device_probe_t miibus_probe;
static bus_read_ivar_t miibus_read_ivar;
static miibus_readreg_t miibus_readreg;
static miibus_statchg_t miibus_statchg;
@@ -110,7 +113,7 @@ struct miibus_ivars {
u_int mii_offset;
};
-int
+static int
miibus_probe(device_t dev)
{
@@ -119,7 +122,7 @@ miibus_probe(device_t dev)
return (BUS_PROBE_SPECIFIC);
}
-int
+static int
miibus_attach(device_t dev)
{
struct miibus_ivars *ivars;
@@ -151,7 +154,7 @@ miibus_attach(device_t dev)
return (bus_generic_attach(dev));
}
-int
+static int
miibus_detach(device_t dev)
{
struct mii_data *mii;
diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h
index 9af5b4e..34b0e9ed 100644
--- a/sys/dev/mii/miivar.h
+++ b/sys/dev/mii/miivar.h
@@ -246,10 +246,6 @@ MIIBUS_ACCESSOR(flags, FLAGS, u_int)
extern devclass_t miibus_devclass;
extern driver_t miibus_driver;
-int miibus_probe(device_t);
-int miibus_attach(device_t);
-int miibus_detach(device_t);
-
int mii_attach(device_t, device_t *, struct ifnet *, ifm_change_cb_t,
ifm_stat_cb_t, int, int, int, int);
void mii_down(struct mii_data *);
OpenPOWER on IntegriCloud