diff options
author | imp <imp@FreeBSD.org> | 2009-02-05 19:30:55 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-02-05 19:30:55 +0000 |
commit | 41dda7f4c2a0922daecbd9547fa6c63cf802731e (patch) | |
tree | 1d2e61df41db4a508a342db33cfb1e5c5c7cec19 /sys/dev/my | |
parent | 6388654b8ddf4e35e62d7d6b3890af964f52059f (diff) | |
download | FreeBSD-src-41dda7f4c2a0922daecbd9547fa6c63cf802731e.zip FreeBSD-src-41dda7f4c2a0922daecbd9547fa6c63cf802731e.tar.gz |
Shutdown returns an int.
Diffstat (limited to 'sys/dev/my')
-rw-r--r-- | sys/dev/my/if_my.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/my/if_my.c b/sys/dev/my/if_my.c index c94f084..65c0dcc 100644 --- a/sys/dev/my/if_my.c +++ b/sys/dev/my/if_my.c @@ -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; } |