ASoC: atmel_ssc: Don't try to free ssc if request failed
authorJoachim Eastwood <manabian@gmail.com>
Wed, 1 Jun 2011 21:59:10 +0000 (23:59 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Jun 2011 09:04:17 +0000 (10:04 +0100)
commit840d8e5e964dc51673d0f26e119b27d2898e8417
treefaf9c6876a6ac09ad8ca4b4793d97480b0fb843e
parentea02c63d57d7ec099f66ddb2942b4022e865cd5f
ASoC: atmel_ssc: Don't try to free ssc if request failed

We should only call ssc_free() when ssc_request() succeeds or bad
things will happen.

Signed-off-by: Joachim Eastwood <joachim.eastwood@jotron.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/atmel/atmel_ssc_dai.c