summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_compat_linux.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/usb_compat_linux.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/usb_compat_linux.c')
-rw-r--r--sys/dev/usb/usb_compat_linux.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/sys/dev/usb/usb_compat_linux.c b/sys/dev/usb/usb_compat_linux.c
index eed72ce..85dba84 100644
--- a/sys/dev/usb/usb_compat_linux.c
+++ b/sys/dev/usb/usb_compat_linux.c
@@ -59,7 +59,6 @@ static device_attach_t usb_linux_attach;
static device_detach_t usb_linux_detach;
static device_suspend_t usb_linux_suspend;
static device_resume_t usb_linux_resume;
-static device_shutdown_t usb_linux_shutdown;
static usb2_callback_t usb_linux_isoc_callback;
static usb2_callback_t usb_linux_non_isoc_callback;
@@ -92,7 +91,6 @@ static device_method_t usb_linux_methods[] = {
DEVMETHOD(device_detach, usb_linux_detach),
DEVMETHOD(device_suspend, usb_linux_suspend),
DEVMETHOD(device_resume, usb_linux_resume),
- DEVMETHOD(device_shutdown, usb_linux_shutdown),
{0, 0}
};
@@ -360,23 +358,6 @@ usb_linux_resume(device_t dev)
}
/*------------------------------------------------------------------------*
- * usb_linux_shutdown
- *
- * This function is the FreeBSD shutdown callback. Usually it does nothing.
- *------------------------------------------------------------------------*/
-static int
-usb_linux_shutdown(device_t dev)
-{
- struct usb_linux_softc *sc = device_get_softc(dev);
- struct usb_driver *udrv = usb_linux_get_usb_driver(sc);
-
- if (udrv && udrv->shutdown) {
- (udrv->shutdown) (sc->sc_ui);
- }
- return (0);
-}
-
-/*------------------------------------------------------------------------*
* Linux emulation layer
*------------------------------------------------------------------------*/
OpenPOWER on IntegriCloud