svn commit: r194342 - in head/sys/mips: adm5120 idt
Bjoern A. Zeeb
bz at FreeBSD.org
Wed Jun 17 10:23:26 UTC 2009
Author: bz
Date: Wed Jun 17 10:23:25 2009
New Revision: 194342
URL: http://svn.freebsd.org/changeset/base/194342
Log:
Make compile again using the correct prototype for the
device shutdown method.
Modified:
head/sys/mips/adm5120/if_admsw.c
head/sys/mips/idt/if_kr.c
Modified: head/sys/mips/adm5120/if_admsw.c
==============================================================================
--- head/sys/mips/adm5120/if_admsw.c Wed Jun 17 10:15:06 2009 (r194341)
+++ head/sys/mips/adm5120/if_admsw.c Wed Jun 17 10:23:25 2009 (r194342)
@@ -133,8 +133,6 @@ static int admsw_ioctl(struct ifnet *, u
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);
}
/*
Modified: head/sys/mips/idt/if_kr.c
==============================================================================
--- head/sys/mips/idt/if_kr.c Wed Jun 17 10:15:06 2009 (r194341)
+++ head/sys/mips/idt/if_kr.c Wed Jun 17 10:23:25 2009 (r194342)
@@ -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
More information about the svn-src-head
mailing list