svn commit: r194213 - projects/mips/sys/mips/adm5120

Oleksandr Tymoshenko gonzo at FreeBSD.org
Sun Jun 14 21:04:54 UTC 2009


Author: gonzo
Date: Sun Jun 14 21:04:54 2009
New Revision: 194213
URL: http://svn.freebsd.org/changeset/base/194213

Log:
  - Fix prototype and implementation of admsw_shutdown

Modified:
  projects/mips/sys/mips/adm5120/if_admsw.c

Modified: projects/mips/sys/mips/adm5120/if_admsw.c
==============================================================================
--- projects/mips/sys/mips/adm5120/if_admsw.c	Sun Jun 14 20:54:46 2009	(r194212)
+++ projects/mips/sys/mips/adm5120/if_admsw.c	Sun Jun 14 21:04:54 2009	(r194213)
@@ -133,7 +133,7 @@ static int	admsw_ioctl(struct ifnet *, u
 static void	admsw_init(void *);
 static void	admsw_stop(struct ifnet *, int);
 
-static void	admsw_shutdown(void *);
+static int	admsw_shutdown(device_t);
 
 static void	admsw_reset(struct admsw_softc *);
 static void	admsw_set_filter(struct admsw_softc *);
@@ -571,14 +571,16 @@ admsw_detach(device_t dev)
  *
  *	Make sure the interface is stopped at reboot time.
  */
-static void
-admsw_shutdown(void *arg)
+static int
+admsw_shutdown(device_t dev)
 {
-	struct admsw_softc *sc = arg;
+	struct admsw_softc *sc = (struct admsw_softc *) device_get_softc(dev);
 	int i;
 
 	for (i = 0; i < SW_DEVS; i++)
 		admsw_stop(sc->sc_ifnet[i], 1);
+
+	return (0);
 }
 
 /*


More information about the svn-src-projects mailing list