summaryrefslogtreecommitdiffstats
path: root/sys/mips/rt305x/rt305x_dotg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/rt305x/rt305x_dotg.c')
-rw-r--r--sys/mips/rt305x/rt305x_dotg.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/mips/rt305x/rt305x_dotg.c b/sys/mips/rt305x/rt305x_dotg.c
index 607b215..b39046f 100644
--- a/sys/mips/rt305x/rt305x_dotg.c
+++ b/sys/mips/rt305x/rt305x_dotg.c
@@ -173,14 +173,8 @@ static int
dotg_obio_detach(device_t dev)
{
struct dwc_otg_softc *sc = device_get_softc(dev);
- device_t bdev;
int err;
- if (sc->sc_bus.bdev) {
- 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