]> git.openfabrics.org - ~emulex/infiniband.git/commit
ASoC: sst-haswell-pcm: Alloc state struct in driver probe()
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 20 Aug 2014 11:08:47 +0000 (13:08 +0200)
committerMark Brown <broonie@linaro.org>
Sat, 6 Sep 2014 13:44:33 +0000 (14:44 +0100)
commitbd033808e2b160bab61cfe18b0ecb4ccc7809516
treea64a0e538a06a411c65952813a8d600b816475f6
parent1ee0beb985e097aa07fa7feab4e11ecf251d763c
ASoC: sst-haswell-pcm: Alloc state struct in driver probe()

Resource allocations should happen in driver probe callback rather than in
snd_soc_platform probe functions. Especially if the resource is device
managed. The snd_soc_* probe/remove functions are mainly intended to be used
for things that require the component to be already bound to a card.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-haswell-pcm.c