Date: Sun, 14 Jun 2009 21:04:54 +0000 (UTC) From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r194213 - projects/mips/sys/mips/adm5120 Message-ID: <200906142104.n5EL4sYB060318@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906142104.n5EL4sYB060318>