]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Fix the device references to codec and platform drivers
authorHarsha Priya <priya.harsha@intel.com>
Wed, 5 Jan 2011 06:04:51 +0000 (11:34 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 5 Jan 2011 11:29:00 +0000 (11:29 +0000)
commitf15109cec003610d020817dd2e5c1e34504661ba
tree5738b81956b7544495ffe9b7e9f6308d590bf7c7
parent459d7d32c56e825bbc29bf3b40669ae7999e49b2
ASoC: Fix the device references to codec and platform drivers

The soc-core takes the platform and codec driver reference during probe. Few of
these references are not released during remove. This cause the platform and
codec driver module unload to fail.

This patch fixes by the taking only one reference to platform and codec module
during probe and releases them correctly during remove. This allows load/unload
properly

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Harsha Priya <priya.harsha@intel.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c