On 18.09.2017 15:40, Bin Meng wrote:
With the root hub unbinding in usb_stop(), there is no need to do
a blk uclass specific unbind operation.

Signed-off-by: Bin Meng <bmeng...@gmail.com>
---

  drivers/usb/host/usb-uclass.c | 6 +-----
  1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c
index e90614f..32c8657 100644
--- a/drivers/usb/host/usb-uclass.c
+++ b/drivers/usb/host/usb-uclass.c
@@ -193,11 +193,7 @@ int usb_stop(void)
                                err = ret;
                }
        }
-#ifdef CONFIG_BLK
-       ret = blk_unbind_all(IF_TYPE_USB);
-       if (ret && !err)
-               err = ret;
-#endif
+
  #ifdef CONFIG_SANDBOX
        struct udevice *dev;

Reviewed-by: Stefan Roese <s...@denx.de>
Tested-by: Stefan Roese <s...@denx.de>

Thanks,
Stefan
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to