ASoC: samsung: Handle errors when getting the op_clk clock
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 22 May 2014 10:10:52 +0000 (12:10 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 22 May 2014 16:57:27 +0000 (17:57 +0100)
commita6aba536ab60274e8f46ae3a5966b81c35f845fa
tree8c40db9b1db558a24d1c82f97df606567bb59371
parent1d55417e127985b955e0f87b5dd0c38daaa79cd3
ASoC: samsung: Handle errors when getting the op_clk clock

Ensure i2s->op_clk is not used when clk_get() for this clock fails.
This prevents working with an incorrectly configured clock in some
conditions.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/samsung/i2s.c