aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-05-15 00:10:21 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-15 11:43:40 -0400
commita756186b61d487c067411764080fd48f995d3799 (patch)
tree10e5e6428bb45d6658865d073eecedd9b14d9a4a
parentb12909b505ebb9a4f28ac32c6bf204b73828b44e (diff)
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 <marex@denx.de> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/chipidea/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c
index 0cffcfe5ce5..9eacd21c0cd 100644
--- a/drivers/usb/chipidea/host.c
+++ b/drivers/usb/chipidea/host.c
@@ -124,7 +124,7 @@ static int host_start(struct ci13xxx *ci)
124 124
125 ret = usb_add_hcd(hcd, 0, 0); 125 ret = usb_add_hcd(hcd, 0, 0);
126 if (ret) 126 if (ret)
127 usb_remove_hcd(hcd); 127 usb_put_hcd(hcd);
128 else 128 else
129 ci->hcd = hcd; 129 ci->hcd = hcd;
130 130