]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: Remove locking in snd_soc_{new,free}_ac97_codec()
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 22 Sep 2014 22:56:28 +0000 (00:56 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 23 Sep 2014 01:19:56 +0000 (18:19 -0700)
commite3f205a72c4554b58f51d5afd98195c4ff54d215
treec2401c150fc1b42d6593d32b9238d1413a627a35
parent8ad9f9efcc7656cafb56bbbcd545f817a742bf32
ASoC: Remove locking in snd_soc_{new,free}_ac97_codec()

snd_soc_new_ac97_codec() and snd_soc_free_ac97_codec() are called from
within a CODEC's probe() and remove() callbacks. Those will not run
concurrently against each other for the same CODEC instance, hence it is not
necessary to protect the two functions with a mutex.

This removes the last user in the ASoC core of the snd_soc_codec mutex field
and will allow us to eventually remove it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c