diff options
author | imp <imp@FreeBSD.org> | 2009-02-05 19:37:49 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-02-05 19:37:49 +0000 |
commit | 3a5200e02e5e318fad8ce45518efc28bb413ac1b (patch) | |
tree | 2046c09eec4d8037ecd5ca9178833569ae12e940 /sys/dev | |
parent | 519fc8678e3e7a946c7436fbb69b2caedb40959c (diff) | |
download | FreeBSD-src-3a5200e02e5e318fad8ce45518efc28bb413ac1b.zip FreeBSD-src-3a5200e02e5e318fad8ce45518efc28bb413ac1b.tar.gz |
shutdown returns an int
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/hifn/hifn7751.c | 5 | ||||
-rw-r--r-- | sys/dev/lmc/if_lmc.c | 3 | ||||
-rw-r--r-- | sys/dev/lmc/if_lmc.h | 2 | ||||
-rw-r--r-- | sys/dev/safe/safe.c | 5 |
4 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c index d3a66e6..c227f77 100644 --- a/sys/dev/hifn/hifn7751.c +++ b/sys/dev/hifn/hifn7751.c @@ -98,7 +98,7 @@ static int hifn_attach(device_t); static int hifn_detach(device_t); static int hifn_suspend(device_t); static int hifn_resume(device_t); -static void hifn_shutdown(device_t); +static int hifn_shutdown(device_t); static int hifn_newsession(device_t, u_int32_t *, struct cryptoini *); static int hifn_freesession(device_t, u_int64_t); @@ -691,12 +691,13 @@ hifn_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 hifn_shutdown(device_t dev) { #ifdef notyet hifn_stop(device_get_softc(dev)); #endif + return (0); } /* diff --git a/sys/dev/lmc/if_lmc.c b/sys/dev/lmc/if_lmc.c index a5a722b..c52778c 100644 --- a/sys/dev/lmc/if_lmc.c +++ b/sys/dev/lmc/if_lmc.c @@ -5643,10 +5643,11 @@ fbsd_detach(device_t dev) return 0; /* no error */ } -static void +static int fbsd_shutdown(device_t dev) { shutdown_card(device_get_softc(dev)); + return 0; } static int diff --git a/sys/dev/lmc/if_lmc.h b/sys/dev/lmc/if_lmc.h index c78b162..a2127d7 100644 --- a/sys/dev/lmc/if_lmc.h +++ b/sys/dev/lmc/if_lmc.h @@ -1642,7 +1642,7 @@ static void detach_card(softc_t *); #ifdef __FreeBSD__ static int fbsd_probe(device_t); static int fbsd_detach(device_t); -static void fbsd_shutdown(device_t); +static int fbsd_shutdown(device_t); static int fbsd_attach(device_t); #endif /* __FreeBSD__ */ diff --git a/sys/dev/safe/safe.c b/sys/dev/safe/safe.c index f3f1243..736b329 100644 --- a/sys/dev/safe/safe.c +++ b/sys/dev/safe/safe.c @@ -84,7 +84,7 @@ static int safe_attach(device_t); static int safe_detach(device_t); static int safe_suspend(device_t); static int safe_resume(device_t); -static void safe_shutdown(device_t); +static int safe_shutdown(device_t); static int safe_newsession(device_t, u_int32_t *, struct cryptoini *); static int safe_freesession(device_t, u_int64_t); @@ -503,12 +503,13 @@ safe_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 safe_shutdown(device_t dev) { #ifdef notyet safe_stop(device_get_softc(dev)); #endif + return (0); } /* |