]> git.baikalelectronics.ru Git - kernel.git/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)
commit05e7038446bcb1f290d64a6e1895428693e4a844
tree1d809f790fe19a8faf46c9baa1da7dcf8b983a04
parent852b5c0bfaea5045ddb190fccff5126b1da71322
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