summaryrefslogtreecommitdiffstats
path: root/sys/arm/allwinner/a10_ehci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/allwinner/a10_ehci.c')
-rw-r--r--sys/arm/allwinner/a10_ehci.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/arm/allwinner/a10_ehci.c b/sys/arm/allwinner/a10_ehci.c
index accf7f9..f754c9a 100644
--- a/sys/arm/allwinner/a10_ehci.c
+++ b/sys/arm/allwinner/a10_ehci.c
@@ -278,17 +278,11 @@ a10_ehci_detach(device_t self)
struct aw_ehci_softc *aw_sc = device_get_softc(self);
ehci_softc_t *sc = &aw_sc->sc;
const struct aw_ehci_conf *conf;
- device_t bdev;
int err;
uint32_t reg_value = 0;
conf = USB_CONF(self);
- if (sc->sc_bus.bdev) {
- bdev = sc->sc_bus.bdev;
- device_detach(bdev);
- device_delete_child(self, bdev);
- }
/* during module unload there are lots of children leftover */
device_delete_children(self);
OpenPOWER on IntegriCloud