diff options
author | yongari <yongari@FreeBSD.org> | 2007-11-22 02:45:00 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2007-11-22 02:45:00 +0000 |
commit | d6d1923521f67b21a7319b500381a1e985b177ff (patch) | |
tree | d1d19f54c55bb9daf8443358fe00c8ae2018ba6b /sys/dev/ti | |
parent | 5fe104598e52f3420ed1a06628822037577d6f88 (diff) | |
download | FreeBSD-src-d6d1923521f67b21a7319b500381a1e985b177ff.zip FreeBSD-src-d6d1923521f67b21a7319b500381a1e985b177ff.tar.gz |
Fix function prototype for device_shutdown method.
Diffstat (limited to 'sys/dev/ti')
-rw-r--r-- | sys/dev/ti/if_ti.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 91d571b..343dee5 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -195,7 +195,7 @@ static void ti_init_locked(void *); static void ti_init2(struct ti_softc *); static void ti_stop(struct ti_softc *); static void ti_watchdog(struct ifnet *); -static void ti_shutdown(device_t); +static int ti_shutdown(device_t); static int ti_ifmedia_upd(struct ifnet *); static void ti_ifmedia_sts(struct ifnet *, struct ifmediareq *); @@ -3874,7 +3874,7 @@ ti_stop(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 ti_shutdown(dev) device_t dev; { @@ -3884,4 +3884,6 @@ ti_shutdown(dev) TI_LOCK(sc); ti_chipinit(sc); TI_UNLOCK(sc); + + return (0); } |