Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13962c74 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Greg Kroah-Hartman
Browse files

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: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3d0bfbf2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}