]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: fsl: imx-wm8962: Fix error path
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 18 Jul 2013 18:07:48 +0000 (15:07 -0300)
committerMark Brown <broonie@linaro.org>
Thu, 18 Jul 2013 20:51:14 +0000 (21:51 +0100)
commitd8a14e302ffeecc312186b8b9b0efc8963cec83b
tree7dff402153b98c7ca9d08c326400605f6ff0d3bf
parent02502da4579ffcd2b96334297ba8e6daefe618c4
ASoC: fsl: imx-wm8962: Fix error path

If the 'failed to find codec platform device' error path is executed, it should
jump to 'fail' label instead of returning an error immediately.

'fail' label will then free the ssi_np and codec_np previously acquired nodes.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/imx-wm8962.c