diff --git a/sys/arm/freescale/vybrid/vf_ehci.c b/sys/arm/freescale/vybrid/vf_ehci.c index 0e33572b501b..d5cddd7a0e5e 100644 --- a/sys/arm/freescale/vybrid/vf_ehci.c +++ b/sys/arm/freescale/vybrid/vf_ehci.c @@ -421,6 +421,8 @@ vybrid_ehci_detach(device_t dev) sc->sc_intr_hdl = NULL; } + usb_bus_mem_free_all(&sc->sc_bus, &ehci_iterate_hw_softc); + bus_release_resources(dev, vybrid_ehci_spec, esc->res); return (0);