aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sf/if_sf.c
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2007-11-22 02:45:00 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2007-11-22 02:45:00 +0000
commit6a087a8722f8f5730da0236d0656ed363b8f87b3 (patch)
treed1d19f54c55bb9daf8443358fe00c8ae2018ba6b /sys/dev/sf/if_sf.c
parente7356456ed980db73b21df22d5405c1aaeeca003 (diff)
downloadsrc-6a087a8722f8f5730da0236d0656ed363b8f87b3.tar.gz
src-6a087a8722f8f5730da0236d0656ed363b8f87b3.zip
Fix function prototype for device_shutdown method.
Notes
Notes: svn path=/head/; revision=173839
Diffstat (limited to 'sys/dev/sf/if_sf.c')
-rw-r--r--sys/dev/sf/if_sf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c
index c76f4d321e71..b3f6086ecedf 100644
--- a/sys/dev/sf/if_sf.c
+++ b/sys/dev/sf/if_sf.c
@@ -147,7 +147,7 @@ static void sf_init(void *);
static void sf_init_locked(struct sf_softc *);
static void sf_stop(struct sf_softc *);
static void sf_watchdog(struct ifnet *);
-static void sf_shutdown(device_t);
+static int sf_shutdown(device_t);
static int sf_ifmedia_upd(struct ifnet *);
static void sf_ifmedia_upd_locked(struct ifnet *);
static void sf_ifmedia_sts(struct ifnet *, struct ifmediareq *);
@@ -1588,7 +1588,7 @@ sf_watchdog(ifp)
SF_UNLOCK(sc);
}
-static void
+static int
sf_shutdown(dev)
device_t dev;
{
@@ -1599,4 +1599,6 @@ sf_shutdown(dev)
SF_LOCK(sc);
sf_stop(sc);
SF_UNLOCK(sc);
+
+ return (0);
}