ASoC: rt5645: Fix missing free_irq
authorKoro Chen <koro.chen@mediatek.com>
Fri, 17 Jul 2015 03:33:11 +0000 (11:33 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jul 2015 11:16:01 +0000 (12:16 +0100)
commit5168c5476a07233ecafaed0effaa59859327e366
treea70a79dca6b37ec8d1cc322e8ea4f74b8427ed9a
parent582edace0b2af5f5fd44446ff6651a23417f1aee
ASoC: rt5645: Fix missing free_irq

The driver does not free irq when snd_soc_register_codec returns error.
It does not return error when request irq failed, either.

Add return when request irq failed, and free_irq if
snd_soc_register_codec failed.

Signed-off-by: Koro Chen <koro.chen@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c