All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.38] ASoC: Fix module refcount for auxiliary devices
@ 2011-01-26 14:39 Jarkko Nikula
  2011-01-26 20:11 ` Liam Girdwood
  2011-01-26 20:27 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Jarkko Nikula @ 2011-01-26 14:39 UTC (permalink / raw)
  To: alsa-devel; +Cc: Vinod Koul, Mark Brown, Harsha Priya, Liam Girdwood

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>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Harsha Priya <priya.harsha@intel.com>
---
 sound/soc/soc-core.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index bac7291..c4b6061 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1664,9 +1664,6 @@ static int soc_probe_aux_dev(struct snd_soc_card *card, int num)
 	goto out;
 
 found:
-	if (!try_module_get(codec->dev->driver->owner))
-		return -ENODEV;
-
 	ret = soc_probe_codec(card, codec);
 	if (ret < 0)
 		return ret;
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2.6.38] ASoC: Fix module refcount for auxiliary devices
  2011-01-26 14:39 [PATCH 2.6.38] ASoC: Fix module refcount for auxiliary devices Jarkko Nikula
@ 2011-01-26 20:11 ` Liam Girdwood
  2011-01-26 20:27 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2011-01-26 20:11 UTC (permalink / raw)
  To: Jarkko Nikula; +Cc: Vinod Koul, alsa-devel, Brown, Harsha Priya, Mark

On Wed, 2011-01-26 at 16:39 +0200, Jarkko Nikula wrote:
> 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>
> Cc: Vinod Koul <vinod.koul@intel.com>
> Cc: Harsha Priya <priya.harsha@intel.com>
> ---

Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2.6.38] ASoC: Fix module refcount for auxiliary devices
  2011-01-26 14:39 [PATCH 2.6.38] ASoC: Fix module refcount for auxiliary devices Jarkko Nikula
  2011-01-26 20:11 ` Liam Girdwood
@ 2011-01-26 20:27 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2011-01-26 20:27 UTC (permalink / raw)
  To: Jarkko Nikula; +Cc: Vinod Koul, alsa-devel, Harsha Priya, Liam Girdwood

On Wed, Jan 26, 2011 at 04:39:37PM +0200, Jarkko Nikula wrote:

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

Applied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-26 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 14:39 [PATCH 2.6.38] ASoC: Fix module refcount for auxiliary devices Jarkko Nikula
2011-01-26 20:11 ` Liam Girdwood
2011-01-26 20:27 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.