ASoC: qcom: storm: allocate snd_soc_card struct dynamically.
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 9 Jun 2015 13:34:21 +0000 (14:34 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 9 Jun 2015 16:18:58 +0000 (17:18 +0100)
This patch moves static allocation of snd_soc_card to dynamic allocation,
the reason to do this is to avoid holding up any dangling pointers
in this static structures. And I see no use for having this struct as static
given that the card->name is also populated dynamically from dt.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>

No differences found