Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2012 01:01:32 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r230711 - stable/9/sys/dev/mii
Message-ID:  <201201290101.q0T11W1U008941@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sun Jan 29 01:01:32 2012
New Revision: 230711
URL: http://svn.freebsd.org/changeset/base/230711

Log:
  MFC: r227688
  
  There's no need export the device interface methods of miibus(4).

Modified:
  stable/9/sys/dev/mii/mii.c
  stable/9/sys/dev/mii/miivar.h
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/amd64/include/xen/   (props changed)
  stable/9/sys/boot/   (props changed)
  stable/9/sys/boot/i386/efi/   (props changed)
  stable/9/sys/boot/ia64/efi/   (props changed)
  stable/9/sys/boot/ia64/ski/   (props changed)
  stable/9/sys/boot/powerpc/boot1.chrp/   (props changed)
  stable/9/sys/boot/powerpc/ofw/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)
  stable/9/sys/conf/   (props changed)
  stable/9/sys/contrib/dev/acpica/   (props changed)
  stable/9/sys/contrib/octeon-sdk/   (props changed)
  stable/9/sys/contrib/pf/   (props changed)
  stable/9/sys/contrib/x86emu/   (props changed)

Modified: stable/9/sys/dev/mii/mii.c
==============================================================================
--- stable/9/sys/dev/mii/mii.c	Sun Jan 29 01:00:16 2012	(r230710)
+++ stable/9/sys/dev/mii/mii.c	Sun Jan 29 01:01:32 2012	(r230711)
@@ -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;
@@ -109,7 +112,7 @@ struct miibus_ivars {
 	u_int		mii_offset;
 };
 
-int
+static int
 miibus_probe(device_t dev)
 {
 
@@ -118,7 +121,7 @@ miibus_probe(device_t dev)
 	return (BUS_PROBE_SPECIFIC);
 }
 
-int
+static int
 miibus_attach(device_t dev)
 {
 	struct miibus_ivars	*ivars;
@@ -150,7 +153,7 @@ miibus_attach(device_t dev)
 	return (bus_generic_attach(dev));
 }
 
-int
+static int
 miibus_detach(device_t dev)
 {
 	struct mii_data		*mii;

Modified: stable/9/sys/dev/mii/miivar.h
==============================================================================
--- stable/9/sys/dev/mii/miivar.h	Sun Jan 29 01:00:16 2012	(r230710)
+++ stable/9/sys/dev/mii/miivar.h	Sun Jan 29 01:01:32 2012	(r230711)
@@ -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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201290101.q0T11W1U008941>