]> git.karo-electronics.de Git - linux-beck.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)
commitf6c2ed5dd6ab43447dacc136585fc894e3f3a82d
tree5738b81956b7544495ffe9b7e9f6308d590bf7c7
parent5e79d64b038ae0039663f721f4b9f5ce1951d9da
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