summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/net/if_cdce.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_cdce.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_cdce.c')
-rw-r--r--sys/dev/usb/net/if_cdce.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/usb/net/if_cdce.c b/sys/dev/usb/net/if_cdce.c
index 9a9cb37..eec58fc 100644
--- a/sys/dev/usb/net/if_cdce.c
+++ b/sys/dev/usb/net/if_cdce.c
@@ -67,7 +67,6 @@ __FBSDID("$FreeBSD$");
static device_probe_t cdce_probe;
static device_attach_t cdce_attach;
static device_detach_t cdce_detach;
-static device_shutdown_t cdce_shutdown;
static device_suspend_t cdce_suspend;
static device_resume_t cdce_resume;
static usb_handle_request_t cdce_handle_request;
@@ -157,7 +156,6 @@ static device_method_t cdce_methods[] = {
DEVMETHOD(device_detach, cdce_detach),
DEVMETHOD(device_suspend, cdce_suspend),
DEVMETHOD(device_resume, cdce_resume),
- DEVMETHOD(device_shutdown, cdce_shutdown),
{0, 0}
};
@@ -596,16 +594,6 @@ cdce_setpromisc(struct usb2_ether *ue)
}
static int
-cdce_shutdown(device_t dev)
-{
- struct cdce_softc *sc = device_get_softc(dev);
-
- usb2_ether_ifshutdown(&sc->sc_ue);
-
- return (0);
-}
-
-static int
cdce_suspend(device_t dev)
{
device_printf(dev, "Suspending\n");
OpenPOWER on IntegriCloud