diff options
Diffstat (limited to 'sys/dev/usb/controller/ehci_imx.c')
-rw-r--r-- | sys/dev/usb/controller/ehci_imx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/controller/ehci_imx.c b/sys/dev/usb/controller/ehci_imx.c index 1fa2d1dab737..149b26f04760 100644 --- a/sys/dev/usb/controller/ehci_imx.c +++ b/sys/dev/usb/controller/ehci_imx.c @@ -31,7 +31,6 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> /* * EHCI driver for Freescale i.MX SoCs which incorporate the USBOH3 controller. */ @@ -314,7 +313,7 @@ imx_ehci_detach(device_t dev) esc = &sc->ehci_softc; /* First detach all children; we can't detach if that fails. */ - if ((err = device_delete_children(dev)) != 0) + if ((err = bus_generic_detach(dev)) != 0) return (err); if (esc->sc_flags & EHCI_SCFLG_DONEINIT) @@ -438,7 +437,7 @@ imx_ehci_attach(device_t dev) imx_ehci_disable_oc(sc); /* Add USB bus device. */ - esc->sc_bus.bdev = device_add_child(dev, "usbus", -1); + esc->sc_bus.bdev = device_add_child(dev, "usbus", DEVICE_UNIT_ANY); if (esc->sc_bus.bdev == NULL) { device_printf(dev, "Could not add USB device\n"); goto out; |