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)
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>

No differences found