ASoC: simple-card: simplify code
authorJean-Francois Moine <moinejf@free.fr>
Wed, 15 Jan 2014 15:51:52 +0000 (16:51 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:42 +0000 (09:21 +0900)
commit49da315735eb48107634f090e3a56e4ab1a3e856
treedeb8f46b29a4857e674f6345b13c54444f053430
parentf5c5c008210efa07fa3403ae3dc86645c88b0b4d
ASoC: simple-card: simplify code

In the non-DT sequence, the platform data is copied as a whole to the
dynamic card info and the same pointer 'cinfo' is used to copy the
platform information to the card.

Use 'priv' as the pointer to the dynamic card info and copy only the
useful information from the platform data.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit ca65b492c7a265b220f763fd68bf87391213248f)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
sound/soc/generic/simple-card.c