aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/at91/at91_ohci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/at91/at91_ohci.c')
-rw-r--r--sys/arm/at91/at91_ohci.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/arm/at91/at91_ohci.c b/sys/arm/at91/at91_ohci.c
index 3e39f5115450..4d8e30150767 100644
--- a/sys/arm/at91/at91_ohci.c
+++ b/sys/arm/at91/at91_ohci.c
@@ -165,14 +165,8 @@ static int
ohci_atmelarm_detach(device_t dev)
{
struct at91_ohci_softc *sc = device_get_softc(dev);
- device_t bdev;
int err;
- if (sc->sc_ohci.sc_bus.bdev) {
- bdev = sc->sc_ohci.sc_bus.bdev;
- device_detach(bdev);
- device_delete_child(dev, bdev);
- }
/* during module unload there are lots of children leftover */
device_delete_children(dev);