diff options
author | avg <avg@FreeBSD.org> | 2009-06-11 17:14:28 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2009-06-11 17:14:28 +0000 |
commit | d5ad944b79d33fa75c3e6f59b5cd900550993783 (patch) | |
tree | 99454c55202dfe1adf0ecef7f0dcf12ee4d6f372 /sys/dev/ubsec/ubsec.c | |
parent | 81fd220c2be02fb5701cdd81386668eb242d435d (diff) | |
download | FreeBSD-src-d5ad944b79d33fa75c3e6f59b5cd900550993783.zip FreeBSD-src-d5ad944b79d33fa75c3e6f59b5cd900550993783.tar.gz |
strict kobj sigs: fix assortment of device_detach and device_shutdown impls
with common issue of having void return type instead of int
Reviewed by: imp, current@
Approved by: jhb (mentor)
Diffstat (limited to 'sys/dev/ubsec/ubsec.c')
-rw-r--r-- | sys/dev/ubsec/ubsec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ubsec/ubsec.c b/sys/dev/ubsec/ubsec.c index 3fb9df2..5e3cc8b 100644 --- a/sys/dev/ubsec/ubsec.c +++ b/sys/dev/ubsec/ubsec.c @@ -107,7 +107,7 @@ static int ubsec_attach(device_t); static int ubsec_detach(device_t); static int ubsec_suspend(device_t); static int ubsec_resume(device_t); -static void ubsec_shutdown(device_t); +static int ubsec_shutdown(device_t); static int ubsec_newsession(device_t, u_int32_t *, struct cryptoini *); static int ubsec_freesession(device_t, u_int64_t); @@ -558,12 +558,13 @@ ubsec_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 ubsec_shutdown(device_t dev) { #ifdef notyet ubsec_stop(device_get_softc(dev)); #endif + return (0); } /* |