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/wi | |
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/wi')
-rw-r--r-- | sys/dev/wi/if_wi.c | 3 | ||||
-rw-r--r-- | sys/dev/wi/if_wivar.h | 2 |
2 files changed, 3 insertions, 2 deletions
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; |