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 | |
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)
-rw-r--r-- | sys/dev/ncv/ncr53c500_pccard.c | 4 | ||||
-rw-r--r-- | sys/dev/nsp/nsp_pccard.c | 4 | ||||
-rw-r--r-- | sys/dev/pdq/if_fpa.c | 6 | ||||
-rw-r--r-- | sys/dev/snc/if_snc.c | 4 | ||||
-rw-r--r-- | sys/dev/snc/if_sncvar.h | 2 | ||||
-rw-r--r-- | sys/dev/stg/tmc18c30.h | 2 | ||||
-rw-r--r-- | sys/dev/stg/tmc18c30_subr.c | 4 | ||||
-rw-r--r-- | sys/dev/ubsec/ubsec.c | 5 | ||||
-rw-r--r-- | sys/dev/wb/if_wb.c | 6 | ||||
-rw-r--r-- | sys/dev/wi/if_wi.c | 3 | ||||
-rw-r--r-- | sys/dev/wi/if_wivar.h | 2 |
11 files changed, 25 insertions, 17 deletions
diff --git a/sys/dev/ncv/ncr53c500_pccard.c b/sys/dev/ncv/ncr53c500_pccard.c index 22dc827..e6021b9 100644 --- a/sys/dev/ncv/ncr53c500_pccard.c +++ b/sys/dev/ncv/ncr53c500_pccard.c @@ -260,11 +260,13 @@ ncv_pccard_attach(device_t dev) return(0); } -static void +static int ncv_pccard_detach(device_t dev) { ncv_card_unload(dev); ncv_release_resource(dev); + + return (0); } static device_method_t ncv_pccard_methods[] = { diff --git a/sys/dev/nsp/nsp_pccard.c b/sys/dev/nsp/nsp_pccard.c index 718181b..5276ab3 100644 --- a/sys/dev/nsp/nsp_pccard.c +++ b/sys/dev/nsp/nsp_pccard.c @@ -200,11 +200,13 @@ nsp_pccard_attach(device_t dev) return(0); } -static void +static int nsp_pccard_detach(device_t dev) { nsp_card_unload(dev); nsp_release_resource(dev); + + return (0); } static device_method_t nsp_pccard_methods[] = { diff --git a/sys/dev/pdq/if_fpa.c b/sys/dev/pdq/if_fpa.c index 55d5e05..ced3b8f 100644 --- a/sys/dev/pdq/if_fpa.c +++ b/sys/dev/pdq/if_fpa.c @@ -67,7 +67,7 @@ __FBSDID("$FreeBSD$"); static int pdq_pci_probe (device_t); static int pdq_pci_attach (device_t); static int pdq_pci_detach (device_t); -static void pdq_pci_shutdown (device_t); +static int pdq_pci_shutdown (device_t); static void pdq_pci_ifintr (void *); static void @@ -185,7 +185,7 @@ pdq_pci_detach (dev) return (0); } -static void +static int pdq_pci_shutdown(device_t dev) { pdq_softc_t *sc; @@ -193,7 +193,7 @@ pdq_pci_shutdown(device_t dev) sc = device_get_softc(dev); pdq_hwreset(sc->sc_pdq); - return; + return (0); } static device_method_t pdq_pci_methods[] = { diff --git a/sys/dev/snc/if_snc.c b/sys/dev/snc/if_snc.c index e89e1c7..02ac7eb 100644 --- a/sys/dev/snc/if_snc.c +++ b/sys/dev/snc/if_snc.c @@ -252,7 +252,7 @@ snc_attach(dev) Shutdown routine ****************************************************************/ -void +int snc_shutdown(dev) device_t dev; { @@ -261,4 +261,6 @@ snc_shutdown(dev) SNC_LOCK(sc); sncshutdown(sc); SNC_UNLOCK(sc); + + return (0); } diff --git a/sys/dev/snc/if_sncvar.h b/sys/dev/snc/if_sncvar.h index 8b6a75b..05d699b 100644 --- a/sys/dev/snc/if_sncvar.h +++ b/sys/dev/snc/if_sncvar.h @@ -44,4 +44,4 @@ int snc_alloc_irq (device_t, int, int); int snc_probe (device_t, int); int snc_attach (device_t); -void snc_shutdown (device_t); +int snc_shutdown (device_t); diff --git a/sys/dev/stg/tmc18c30.h b/sys/dev/stg/tmc18c30.h index 8a1848c..b79c117 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 44cb319..c1bf9c9 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 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); } /* diff --git a/sys/dev/wb/if_wb.c b/sys/dev/wb/if_wb.c index e3c3295..1538114 100644 --- a/sys/dev/wb/if_wb.c +++ b/sys/dev/wb/if_wb.c @@ -159,7 +159,7 @@ static void wb_init(void *); static void wb_init_locked(struct wb_softc *); static void wb_stop(struct wb_softc *); static void wb_watchdog(struct ifnet *); -static void wb_shutdown(device_t); +static int wb_shutdown(device_t); static int wb_ifmedia_upd(struct ifnet *); static void wb_ifmedia_sts(struct ifnet *, struct ifmediareq *); @@ -1832,7 +1832,7 @@ wb_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 wb_shutdown(dev) device_t dev; { @@ -1844,5 +1844,5 @@ wb_shutdown(dev) wb_stop(sc); WB_UNLOCK(sc); - return; + return (0); } diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 745d68e..d9d1286a 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -571,12 +571,13 @@ wi_vap_delete(struct ieee80211vap *vap) free(wvp, M_80211_VAP); } -void +int wi_shutdown(device_t dev) { struct wi_softc *sc = device_get_softc(dev); wi_stop(sc, 1); + return (0); } void diff --git a/sys/dev/wi/if_wivar.h b/sys/dev/wi/if_wivar.h index fd622bd..99b866d 100644 --- a/sys/dev/wi/if_wivar.h +++ b/sys/dev/wi/if_wivar.h @@ -176,7 +176,7 @@ struct wi_card_ident { int wi_attach(device_t); int wi_detach(device_t); -void wi_shutdown(device_t); +int wi_shutdown(device_t); int wi_alloc(device_t, int); void wi_free(device_t); extern devclass_t wi_devclass; |