]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Revert "dm: usb: Use device_unbind_children to clean up usb devs on stop"
authorSimon Glass <sjg@chromium.org>
Mon, 9 Nov 2015 06:47:57 +0000 (23:47 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:27:51 +0000 (20:27 -0700)
This reverts commit 6cda369509e0d3fa5f9e33c9d71589c4523799fa.

We want to avoid having the USB stack rely on unbind.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/usb-uclass.c

index 838d05af755b4fcc8868839eeb83cc753ac537e9..89611f1c328bdd8a7b5f0462798238533f2a73be 100644 (file)
@@ -158,9 +158,6 @@ int usb_stop(void)
                ret = device_remove(bus);
                if (ret && !err)
                        err = ret;
-               ret = device_unbind_children(bus);
-               if (ret && !err)
-                       err = ret;
        }
 
 #ifdef CONFIG_SANDBOX