ASoC: wm9713: Move driver state struct allocation to driver probe
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 30 Oct 2014 20:01:09 +0000 (21:01 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 31 Oct 2014 17:34:00 +0000 (17:34 +0000)
commit5efe89d9525f24f607079307d2d9510e30ba8590
tree1d83e09474a4c44a37adf54c9fcae91609ee739f
parentc1359ca303ee5125827c0d2a65f0c86d491dc993
ASoC: wm9713: Move driver state struct allocation to driver probe

Resources for the device should be allocated in the device driver probe
callback, rather than in the ASoC CODEC probe callback.

E.g. one advantage is that we can use device managed allocations.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm9713.c