summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-10-01 06:19:43 -0700
committerMarek Vasut <marex@denx.de>2017-10-01 16:32:51 +0200
commitad0a9378bf5cc9280e117b7db94b6bfa1b6e8e76 (patch)
tree27bf32e13161a6c9ba7f14f872be2d9ccc4f9353 /drivers
parentd4efefe32ea8a45b7b30f4769b3928c28e181c73 (diff)
dm: usb: Remove no longer needed blk_unbind_all()
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.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/usb-uclass.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c
index 8a9f810bf8..bfc0556d7d 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;