summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/net/if_rue.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-05-05 15:39:29 +0000
committerthompsa <thompsa@FreeBSD.org>2009-05-05 15:39:29 +0000
commit1dad28b11e3e46254de8aac8eb786a6627348e42 (patch)
treec81a83c35fcae7c3e83bf9803f42242f38014c81 /sys/dev/usb/net/if_rue.c
parent9a5ee5e7f1215ee4dc0f22592f0b6c02700d0f35 (diff)
downloadFreeBSD-src-1dad28b11e3e46254de8aac8eb786a6627348e42.zip
FreeBSD-src-1dad28b11e3e46254de8aac8eb786a6627348e42.tar.gz
Remove USB shutdown methods from device drivers as its the host controllers
responsibility to detach the bus. PR: usb/133896 Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb/net/if_rue.c')
-rw-r--r--sys/dev/usb/net/if_rue.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/dev/usb/net/if_rue.c b/sys/dev/usb/net/if_rue.c
index dc7a31f..5783943 100644
--- a/sys/dev/usb/net/if_rue.c
+++ b/sys/dev/usb/net/if_rue.c
@@ -105,7 +105,6 @@ static const struct usb2_device_id rue_devs[] = {
static device_probe_t rue_probe;
static device_attach_t rue_attach;
static device_detach_t rue_detach;
-static device_shutdown_t rue_shutdown;
static miibus_readreg_t rue_miibus_readreg;
static miibus_writereg_t rue_miibus_writereg;
@@ -172,7 +171,6 @@ static device_method_t rue_methods[] = {
DEVMETHOD(device_probe, rue_probe),
DEVMETHOD(device_attach, rue_attach),
DEVMETHOD(device_detach, rue_detach),
- DEVMETHOD(device_shutdown, rue_shutdown),
/* Bus interface */
DEVMETHOD(bus_print_child, bus_generic_print_child),
@@ -897,17 +895,3 @@ rue_stop(struct usb2_ether *ue)
rue_reset(sc);
}
-
-/*
- * Stop all chip I/O so that the kernel's probe routines don't
- * get confused by errant DMAs when rebooting.
- */
-static int
-rue_shutdown(device_t dev)
-{
- struct rue_softc *sc = device_get_softc(dev);
-
- usb2_ether_ifshutdown(&sc->sc_ue);
-
- return (0);
-}
OpenPOWER on IntegriCloud