]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: fsl: Fix error handling if platform_device_add fails
authorAxel Lin <axel.lin@gmail.com>
Tue, 20 Sep 2011 07:09:00 +0000 (15:09 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 20 Sep 2011 11:58:59 +0000 (12:58 +0100)
commitd890a1a42dff2e6987f04f18fc9e467b10e99cc9
treeabbbfd6b6e71df9970e774c41adf0cf9cf9928ac
parentded71dcb77ae0dee71fdb9c4e2d2b3dc3d1b7693
ASoC: fsl: Fix error handling if platform_device_add fails

Call platform_device_put() instead of platform_device_unregister() if
platform_device_add() fails.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/mpc8610_hpcd.c
sound/soc/fsl/p1022_ds.c