From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 22 Sep 2017 06:57:29 +0200 Subject: [U-Boot] [PATCH 02/14] dm: usb: Remove no longer needed blk_unbind_all() In-Reply-To: <1505742050-5697-3-git-send-email-bmeng.cn@gmail.com> References: <1505742050-5697-1-git-send-email-bmeng.cn@gmail.com> <1505742050-5697-3-git-send-email-bmeng.cn@gmail.com> Message-ID: <47d5dc99-e157-5fe1-2f3b-9c4b544b1861@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > > 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 Tested-by: Stefan Roese Thanks, Stefan