summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/xhci_mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/controller/xhci_mv.c')
-rw-r--r--sys/dev/usb/controller/xhci_mv.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/usb/controller/xhci_mv.c b/sys/dev/usb/controller/xhci_mv.c
index 06b35ce..9be09bb 100644
--- a/sys/dev/usb/controller/xhci_mv.c
+++ b/sys/dev/usb/controller/xhci_mv.c
@@ -171,15 +171,8 @@ static int
xhci_detach(device_t dev)
{
struct xhci_softc *sc = device_get_softc(dev);
- device_t bdev;
int err;
- if (sc->sc_bus.bdev != NULL) {
- bdev = sc->sc_bus.bdev;
- device_detach(bdev);
- device_delete_child(dev, bdev);
- }
-
/* during module unload there are lots of children leftover */
device_delete_children(dev);
OpenPOWER on IntegriCloud