Skip to content

Commit

Permalink
USB: CI13xxx: Use usb_put_hcd() on failure to drop HCD
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Vasut authored and Greg Kroah-Hartman committed May 15, 2012
1 parent b12909b commit a756186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/chipidea/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a756186

Please sign in to comment.