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/pci/if_xl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/pci/if_xl.c') 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 -- cgit v1.1