omap: McBSP: Fix possible port lockout
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Fri, 8 Jan 2010 18:29:04 +0000 (10:29 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 8 Jan 2010 18:29:04 +0000 (10:29 -0800)
commit1866b54525d13402b2d129b906c4d189377f89c5
tree700f10fb9e2369ffe818b824211fe54f23b9159d
parent74d2e4f8d79ae0c4b6ec027958d5b18058662eea
omap: McBSP: Fix possible port lockout

In its current form, the omap_mcbsp_request() function can return after
irq_request() failure without any cleanups, effectively locking out the port
forever with clocks left running. Fix it.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/mcbsp.c