浏览代码

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>
Bin Meng 7 年之前
父节点
当前提交
ad0a9378bf
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      drivers/usb/host/usb-uclass.c

+ 1 - 5
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;