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)
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>

No differences found