Skip to content

Commit

Permalink
MUSB: DaVinci: fix musb_platform_init() error cleanup path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sergei Shtylyov authored and Greg Kroah-Hartman committed Apr 30, 2010
1 parent 3d0bfbf commit 13962c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/musb/davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 13962c7

Please sign in to comment.