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/bfe | |
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/bfe')
-rw-r--r-- | sys/dev/bfe/if_bfe.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index b88a6bd..396ae45 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -98,7 +98,7 @@ static void bfe_init (void *); static void bfe_init_locked (void *); static void bfe_stop (struct bfe_softc *); static void bfe_watchdog (struct ifnet *); -static void bfe_shutdown (device_t); +static int bfe_shutdown (device_t); static void bfe_tick (void *); static void bfe_txeof (struct bfe_softc *); static void bfe_rxeof (struct bfe_softc *); @@ -470,7 +470,7 @@ bfe_detach(device_t dev) * 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 bfe_shutdown(device_t dev) { struct bfe_softc *sc; @@ -480,7 +480,8 @@ bfe_shutdown(device_t dev) bfe_stop(sc); BFE_UNLOCK(sc); - return; + + return (0); } static int |