summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_aue.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-06-18 22:25:46 +0000
committerimp <imp@FreeBSD.org>2007-06-18 22:25:46 +0000
commit03e581dfb9e93327c7f7fc43b3c9163cf28a9b2b (patch)
treec29c30e36c2a0bdd2fd7ef00eb8abdd63d110e66 /sys/dev/usb/if_aue.c
parent54ee9439a2328f935838093a7c5ac676a23bc173 (diff)
downloadFreeBSD-src-03e581dfb9e93327c7f7fc43b3c9163cf28a9b2b.zip
FreeBSD-src-03e581dfb9e93327c7f7fc43b3c9163cf28a9b2b.tar.gz
Use device_foo_t to declare kobj methods
Fix shutdown type to return int rather than void.
Diffstat (limited to 'sys/dev/usb/if_aue.c')
-rw-r--r--sys/dev/usb/if_aue.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c
index b472b8f..3ed68af 100644
--- a/sys/dev/usb/if_aue.c
+++ b/sys/dev/usb/if_aue.c
@@ -185,9 +185,13 @@ static const struct aue_type aue_devs[] = {
};
#define aue_lookup(v, p) ((const struct aue_type *)usb_lookup(aue_devs, v, p))
-static int aue_match(device_t);
-static int aue_attach(device_t);
-static int aue_detach(device_t);
+static device_probe_t aue_match;
+static device_attach_t aue_attach;
+static device_detach_t aue_detach;
+static device_shutdown_t aue_shutdown;
+static miibus_readreg_t aue_miibus_readreg;
+static miibus_writereg_t aue_miibus_writereg;
+static miibus_statchg_t aue_miibus_statchg;
static void aue_reset_pegasus_II(struct aue_softc *sc);
static int aue_encap(struct aue_softc *, struct mbuf *, int);
@@ -210,15 +214,11 @@ static void aue_init(void *);
static void aue_init_body(struct aue_softc *);
static void aue_stop(struct aue_softc *);
static void aue_watchdog(struct aue_softc *);
-static void aue_shutdown(device_t);
static int aue_ifmedia_upd(struct ifnet *);
static void aue_ifmedia_sts(struct ifnet *, struct ifmediareq *);
static void aue_eeprom_getword(struct aue_softc *, int, u_int16_t *);
static void aue_read_eeprom(struct aue_softc *, caddr_t, int, int, int);
-static int aue_miibus_readreg(device_t, int, int);
-static int aue_miibus_writereg(device_t, int, int, int);
-static void aue_miibus_statchg(device_t);
static void aue_setmulti(struct aue_softc *);
static void aue_reset(struct aue_softc *);
@@ -1405,7 +1405,7 @@ aue_stop(struct aue_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
aue_shutdown(device_t dev)
{
struct aue_softc *sc;
@@ -1417,7 +1417,7 @@ aue_shutdown(device_t dev)
aue_stop(sc);
AUE_SXUNLOCK(sc);
- return;
+ return (0);
}
static void
OpenPOWER on IntegriCloud