summaryrefslogtreecommitdiffstats
path: root/sys/mips/adm5120
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/adm5120
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/adm5120')
-rw-r--r--sys/mips/adm5120/if_admsw.c12
1 files changed, 7 insertions, 5 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);
}
/*
OpenPOWER on IntegriCloud