summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-06-17 10:23:25 +0000
committerbz <bz@FreeBSD.org>2009-06-17 10:23:25 +0000
commit8c2f5259557d44b2d793cf4195cd279e18e372f1 (patch)
tree3f5ce2d78cc06289c3f199e3794778448c3fdf4c /sys/mips
parentbb2f6a2f791cb8b2328270fb8e6ad2465dcfbf8e (diff)
downloadFreeBSD-src-8c2f5259557d44b2d793cf4195cd279e18e372f1.zip
FreeBSD-src-8c2f5259557d44b2d793cf4195cd279e18e372f1.tar.gz
Make compile again using the correct prototype for the
device shutdown method.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/adm5120/if_admsw.c12
-rw-r--r--sys/mips/idt/if_kr.c6
2 files changed, 11 insertions, 7 deletions
diff --git a/sys/mips/adm5120/if_admsw.c b/sys/mips/adm5120/if_admsw.c
index 1f6a4b3..71971cd 100644
--- a/sys/mips/adm5120/if_admsw.c
+++ b/sys/mips/adm5120/if_admsw.c
@@ -133,8 +133,6 @@ static int admsw_ioctl(struct ifnet *, u_long, caddr_t);
static void admsw_init(void *);
static void admsw_stop(struct ifnet *, int);
-static void admsw_shutdown(void *);
-
static void admsw_reset(struct admsw_softc *);
static void admsw_set_filter(struct admsw_softc *);
@@ -153,6 +151,7 @@ static int admsw_intr(void *);
static int admsw_probe(device_t dev);
static int admsw_attach(device_t dev);
static int admsw_detach(device_t dev);
+static int admsw_shutdown(device_t dev);
static void
admsw_dma_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error)
@@ -571,14 +570,17 @@ admsw_detach(device_t dev)
*
* Make sure the interface is stopped at reboot time.
*/
-static void
-admsw_shutdown(void *arg)
+static int
+admsw_shutdown(device_t dev)
{
- struct admsw_softc *sc = arg;
+ struct admsw_softc *sc;
int i;
+ sc = device_get_softc(dev);
for (i = 0; i < SW_DEVS; i++)
admsw_stop(sc->sc_ifnet[i], 1);
+
+ return (0);
}
/*
diff --git a/sys/mips/idt/if_kr.c b/sys/mips/idt/if_kr.c
index 45378b0..bbc800f 100644
--- a/sys/mips/idt/if_kr.c
+++ b/sys/mips/idt/if_kr.c
@@ -89,7 +89,7 @@ static void kr_reset(struct kr_softc *);
static int kr_resume(device_t);
static int kr_rx_ring_init(struct kr_softc *);
static int kr_tx_ring_init(struct kr_softc *);
-static void kr_shutdown(device_t);
+static int kr_shutdown(device_t);
static void kr_start(struct ifnet *);
static void kr_start_locked(struct ifnet *);
static void kr_stop(struct kr_softc *);
@@ -392,7 +392,7 @@ kr_resume(device_t dev)
return 0;
}
-static void
+static int
kr_shutdown(device_t dev)
{
struct kr_softc *sc;
@@ -402,6 +402,8 @@ kr_shutdown(device_t dev)
KR_LOCK(sc);
kr_stop(sc);
KR_UNLOCK(sc);
+
+ return (0);
}
static int
OpenPOWER on IntegriCloud