From c0e55e3b65ffb5b5aa0f4c0f76f4ed62c6d25993 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Thu, 11 Jun 2009 17:14:28 +0000 Subject: 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) --- sys/dev/stg/tmc18c30.h | 2 +- sys/dev/stg/tmc18c30_subr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/stg') diff --git a/sys/dev/stg/tmc18c30.h b/sys/dev/stg/tmc18c30.h index 8a1848c6b5bf..b79c11797135 100644 --- a/sys/dev/stg/tmc18c30.h +++ b/sys/dev/stg/tmc18c30.h @@ -8,5 +8,5 @@ int stg_alloc_resource (device_t); void stg_release_resource (device_t); int stg_probe (device_t); int stg_attach (device_t); -void stg_detach (device_t); +int stg_detach (device_t); void stg_intr (void *); diff --git a/sys/dev/stg/tmc18c30_subr.c b/sys/dev/stg/tmc18c30_subr.c index 44cb319c8719..c1bf9c9a0333 100644 --- a/sys/dev/stg/tmc18c30_subr.c +++ b/sys/dev/stg/tmc18c30_subr.c @@ -162,7 +162,7 @@ stg_attach(device_t dev) return(STGIOSZ); } -void +int stg_detach (device_t dev) { struct stg_softc *sc = device_get_softc(dev); @@ -173,7 +173,7 @@ stg_detach (device_t dev) scsi_low_dettach(&sc->sc_sclow); splx(s); stg_release_resource(dev); - return; + return (0); } void -- cgit v1.3