ASoC: efika-audio-fabric: fix resource leak in efika_fabric_init error path
authorAxel Lin <axel.lin@gmail.com>
Thu, 25 Nov 2010 07:07:25 +0000 (15:07 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 25 Nov 2010 11:08:13 +0000 (11:08 +0000)
commit4e1f86509732ccc39938974db0612d14afbca953
tree6d1b50b9441d14781b798543adc9f9443218da09
parent3b6bc354cb22b1069f88acdc7673d3476fbadfca
ASoC: efika-audio-fabric: fix resource leak in efika_fabric_init error path

Add missing platform_device_put() if platform_device_add() failed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/efika-audio-fabric.c