ASoC: Fix module refcount for auxiliary devices
authorJarkko Nikula <jhnikula@gmail.com>
Wed, 26 Jan 2011 14:39:37 +0000 (16:39 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 26 Jan 2011 20:26:54 +0000 (20:26 +0000)
commitc73e0c83f512012e7c357e516a0d7c0a832bfa34
tree9dbcec5f2cff0db531943f55303f6b57d1f70b62
parenta3adfa00e8089aa72826c6ba04bcb18cfceaf0a9
ASoC: Fix module refcount for auxiliary devices

Commit f6c2ed5 "ASoC: Fix the device references to codec and platform drivers"
moved codec driver refcount increments from soc_bind_dai_link into
soc_probe_codec.

However, the commit didn't remove try_module_get from soc_probe_aux_dev so
the auxiliary device reference counts are incremented twice as the
soc_probe_codec is called from soc_probe_aux_dev too.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c