From: Simon Glass Date: Mon, 9 Nov 2015 06:47:57 +0000 (-0700) Subject: Revert "dm: usb: Use device_unbind_children to clean up usb devs on stop" X-Git-Tag: v2016.01-rc2~188 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ba94e839119d15a3285a0c33ae24f401e997772d;p=u-boot Revert "dm: usb: Use device_unbind_children to clean up usb devs on stop" This reverts commit 6cda369509e0d3fa5f9e33c9d71589c4523799fa. We want to avoid having the USB stack rely on unbind. Signed-off-by: Simon Glass --- diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index 838d05af75..89611f1c32 100644 --- a/drivers/usb/host/usb-uclass.c +++ b/drivers/usb/host/usb-uclass.c @@ -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