2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-20 08:38:24 +08:00

MUSB: DaVinci: fix musb_platform_init() error cleanup path

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>
This commit is contained in:
Sergei Shtylyov 2010-03-25 13:14:30 +02:00 committed by Greg Kroah-Hartman
parent 3d0bfbf259
commit 13962c7479

View 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;
}