]> err.no Git - linux-2.6/commit
ALSA: ASoC: Fix error paths in N810 machine driver init and release clocks at exit
authorJarkko Nikula <jarkko.nikula@nokia.com>
Tue, 26 Aug 2008 10:32:57 +0000 (13:32 +0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 Aug 2008 10:44:03 +0000 (12:44 +0200)
commite784539fe81490a982a013621d39a60c4fce427e
tree1d809f790fe19a8faf46c9baa1da7dcf8b983a04
parent3d839e5b87a70effc629c1cdbf77d837ef141919
ALSA: ASoC: Fix error paths in N810 machine driver init and release clocks at exit

Thanks to Felipe Balbi <felipe.balbi@nokia.com> by noticing that if clk_get
to sys_clkout2_src fails, then n810_snd_device is never released.

Add also sys_clkout2_src release into error path, error code return and
release the clocks at exit.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/omap/n810.c