ASoC: arizona: Fix error path in codec probe
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Fri, 10 Jul 2015 13:37:25 +0000 (14:37 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 10 Jul 2015 16:02:42 +0000 (17:02 +0100)
commitd90c6cc242045115c5c4973114cc93e1c20e2ea8
tree46c61df443c63309656fc669ec5bc4401b12c3e9
parent5ed68f0a28f96c5127246d1743dd57b58a090f07
ASoC: arizona: Fix error path in codec probe

If we fail to add some DSPs or fail to add the controls we should call
wm_adsp2_codec_remove for all the cores we have already added. This
patch fixes this up on the wm5102 and wm5110.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5110.c