summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3adfa0)
raw | patch | inline | side by side (parent: a3adfa0)
author | Jarkko Nikula <jhnikula@gmail.com> | |
Wed, 26 Jan 2011 14:39:37 +0000 (16:39 +0200) | ||
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | |
Wed, 26 Jan 2011 20:26:54 +0000 (20:26 +0000) |
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>
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 | patch | blob | history |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index bac7291b6ff625a131d461bd8e5123814bfb961d..c4b60610beb002b04f1e8d81aeb12bc8c9f2b82c 100644 (file)
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
goto out;
found:
- if (!try_module_get(codec->dev->driver->owner))
- return -ENODEV;
-
ret = soc_probe_codec(card, codec);
if (ret < 0)
return ret;