Skip to content

Commit

Permalink
ASoC: Fix module refcount for auxiliary devices
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Jarkko Nikula authored and broonie committed Jan 26, 2011
1 parent a3adfa0 commit c73e0c8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c73e0c8

Please sign in to comment.