ASoC: wm0010: fix error path
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 18 Sep 2015 10:32:21 +0000 (16:02 +0530)
committerMark Brown <broonie@kernel.org>
Sat, 19 Sep 2015 15:40:55 +0000 (08:40 -0700)
commitf072f91aa7517386344476813ca0799e08fd0c35
tree7b4dfdb8ef4a0288e0b4b30442b76a2dd562642f
parent2ace47be5a315def8f493ca77aa59c077ade30a1
ASoC: wm0010: fix error path

Fix the error path so that we can free the allocated memory on the error
path instead of releasing them individually on each error.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm0010.c