Date: Thu, 5 Feb 2009 19:30:55 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r188172 - head/sys/dev/my Message-ID: <200902051930.n15JUtt9035979@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Thu Feb 5 19:30:55 2009 New Revision: 188172 URL: http://svn.freebsd.org/changeset/base/188172 Log: Shutdown returns an int. Modified: head/sys/dev/my/if_my.c Modified: head/sys/dev/my/if_my.c ============================================================================== --- head/sys/dev/my/if_my.c Thu Feb 5 19:30:28 2009 (r188171) +++ head/sys/dev/my/if_my.c Thu Feb 5 19:30:55 2009 (r188172) @@ -127,7 +127,7 @@ static void my_init(void *); static void my_init_locked(struct my_softc *); static void my_stop(struct my_softc *); static void my_watchdog(struct ifnet *); -static void my_shutdown(device_t); +static int my_shutdown(device_t); static int my_ifmedia_upd(struct ifnet *); static void my_ifmedia_sts(struct ifnet *, struct ifmediareq *); static u_int16_t my_phy_readreg(struct my_softc *, int); @@ -1753,7 +1753,7 @@ my_stop(struct my_softc * sc) * Stop all chip I/O so that the kernel's probe routines don't get confused * by errant DMAs when rebooting. */ -static void +static int my_shutdown(device_t dev) { struct my_softc *sc; @@ -1762,5 +1762,5 @@ my_shutdown(device_t dev) MY_LOCK(sc); my_stop(sc); MY_UNLOCK(sc); - return; + return 0; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902051930.n15JUtt9035979>