From d6d1923521f67b21a7319b500381a1e985b177ff Mon Sep 17 00:00:00 2001 From: yongari Date: Thu, 22 Nov 2007 02:45:00 +0000 Subject: Fix function prototype for device_shutdown method. --- sys/dev/nfe/if_nfe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/nfe') diff --git a/sys/dev/nfe/if_nfe.c b/sys/dev/nfe/if_nfe.c index d76ff57..dab166d 100644 --- a/sys/dev/nfe/if_nfe.c +++ b/sys/dev/nfe/if_nfe.c @@ -76,7 +76,7 @@ static int nfe_attach(device_t); static int nfe_detach(device_t); static int nfe_suspend(device_t); static int nfe_resume(device_t); -static void nfe_shutdown(device_t); +static int nfe_shutdown(device_t); static void nfe_power(struct nfe_softc *); static int nfe_miibus_readreg(device_t, int, int); static int nfe_miibus_writereg(device_t, int, int, int); @@ -3115,7 +3115,7 @@ nfe_tick(void *xsc) } -static void +static int nfe_shutdown(device_t dev) { struct nfe_softc *sc; @@ -3128,6 +3128,8 @@ nfe_shutdown(device_t dev) nfe_stop(ifp); /* nfe_reset(sc); */ NFE_UNLOCK(sc); + + return (0); } -- cgit v1.1