Commit a756186b authored by Marek Vasut's avatar Marek Vasut Committed by Greg Kroah-Hartman

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: default avatarMarek 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b12909b5
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment