summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_xl.c
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2007-11-22 02:45:00 +0000
committeryongari <yongari@FreeBSD.org>2007-11-22 02:45:00 +0000
commitd6d1923521f67b21a7319b500381a1e985b177ff (patch)
treed1d19f54c55bb9daf8443358fe00c8ae2018ba6b /sys/pci/if_xl.c
parent5fe104598e52f3420ed1a06628822037577d6f88 (diff)
downloadFreeBSD-src-d6d1923521f67b21a7319b500381a1e985b177ff.zip
FreeBSD-src-d6d1923521f67b21a7319b500381a1e985b177ff.tar.gz
Fix function prototype for device_shutdown method.
Diffstat (limited to 'sys/pci/if_xl.c')
-rw-r--r--sys/pci/if_xl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c
index a14ade7..094c0af 100644
--- a/sys/pci/if_xl.c
+++ b/sys/pci/if_xl.c
@@ -246,7 +246,7 @@ static void xl_init(void *);
static void xl_init_locked(struct xl_softc *);
static void xl_stop(struct xl_softc *);
static int xl_watchdog(struct xl_softc *);
-static void xl_shutdown(device_t);
+static int xl_shutdown(device_t);
static int xl_suspend(device_t);
static int xl_resume(device_t);
@@ -3344,7 +3344,7 @@ xl_stop(struct xl_softc *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
xl_shutdown(device_t dev)
{
struct xl_softc *sc;
@@ -3355,6 +3355,8 @@ xl_shutdown(device_t dev)
xl_reset(sc);
xl_stop(sc);
XL_UNLOCK(sc);
+
+ return (0);
}
static int
OpenPOWER on IntegriCloud