ASoC: core: Fix obscure leak of runtime array
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Mar 2012 20:18:49 +0000 (20:18 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 15 Mar 2012 14:28:25 +0000 (14:28 +0000)
We're currently not freeing card->rtd in cases where the card is
unregistered before being instantiated - convert it to devm_kzalloc() to
make sure that happens.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/soc-core.c

Simple merge