From: Marek Vasut Date: Tue, 15 May 2012 04:10:21 +0000 (+0200) Subject: USB: CI13xxx: Use usb_put_hcd() on failure to drop HCD X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a756186b61d487c067411764080fd48f995d3799;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git USB: CI13xxx: Use usb_put_hcd() on failure to drop HCD Use usb_put_hcd() call instead of usb_remove_hcd() as that's the appropriate call to drop hcd which failed registration. Signed-off-by: Marek Vasut Cc: Alan Stern Cc: Alexander Shishkin Cc: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c index 0cffcfe5ce53..9eacd21c0cd9 100644 --- a/drivers/usb/chipidea/host.c +++ b/drivers/usb/chipidea/host.c @@ -124,7 +124,7 @@ static int host_start(struct ci13xxx *ci) ret = usb_add_hcd(hcd, 0, 0); if (ret) - usb_remove_hcd(hcd); + usb_put_hcd(hcd); else ci->hcd = hcd;