MUSB: DaVinci: fix musb_platform_init() error cleanup path
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 25 Mar 2010 11:14:30 +0000 (13:14 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Apr 2010 16:25:08 +0000 (09:25 -0700)
This function forgets to call clk_disable() iff reading the USB module version
register returns 0.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/davinci.c

index 29bce5c0fd104bfce4966a6af4c66d4ff4e032ea..ce2e16fee0df9dc644c1c14d52fa78c038f34b2e 100644 (file)
@@ -444,6 +444,8 @@ int __init musb_platform_init(struct musb *musb)
        return 0;
 
 fail:
+       clk_disable(musb->clock);
+
        usb_nop_xceiv_unregister();
        return -ENODEV;
 }