summaryrefslogtreecommitdiffstats
path: root/sys/dev/wb
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2009-06-11 17:14:28 +0000
committeravg <avg@FreeBSD.org>2009-06-11 17:14:28 +0000
commitd5ad944b79d33fa75c3e6f59b5cd900550993783 (patch)
tree99454c55202dfe1adf0ecef7f0dcf12ee4d6f372 /sys/dev/wb
parent81fd220c2be02fb5701cdd81386668eb242d435d (diff)
downloadFreeBSD-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/wb')
-rw-r--r--sys/dev/wb/if_wb.c6
1 files changed, 3 insertions, 3 deletions
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);
}
OpenPOWER on IntegriCloud