USB: CI13xxx: Use usb_put_hcd() on failure to drop HCD
authorMarek Vasut <marex@denx.de>
Tue, 15 May 2012 04:10:21 +0000 (06:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 May 2012 15:43:40 +0000 (08:43 -0700)
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>
drivers/usb/chipidea/host.c

index 0cffcfe5ce5337c3c541ca25088666cd099179bf..9eacd21c0cd9ffd9fe7d98ac89f0cd75e79b6b31 100644 (file)
@@ -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;