ASoC: Davinci: Call clk_disable() and clk_put() in case of error
authorVaibhav Bedia <vaibhav.bedia@ti.com>
Wed, 9 Feb 2011 13:09:53 +0000 (18:39 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 9 Feb 2011 22:33:16 +0000 (22:33 +0000)
commiteef6d7b8c24e8dd5af6094ef453a05c80b68d36e
tree77a1690881491f6b256ee6fb93d20b466720cce8
parentd852f446b71b80c59821a08cdb595aa266210daf
ASoC: Davinci: Call clk_disable() and clk_put() in case of error

In case of any error in probe() function, clk_disable() and clk_put()
should be called if clk_enable() and clk_get() went through.

Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-i2s.c
sound/soc/davinci/davinci-mcasp.c