ASoC: Remove CODEC mutex
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 9 Nov 2014 16:01:04 +0000 (17:01 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 10 Nov 2014 19:08:31 +0000 (19:08 +0000)
The CODEC mutex is now unused and can be removed.

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

index 7ba7130037a079f1fb065e9c8fdcf55353aa3c9e..5c91b06864ce1f9a6ff041f1b3b6d0b1000c1122 100644 (file)
@@ -780,7 +780,6 @@ struct snd_soc_codec {
        struct device *dev;
        const struct snd_soc_codec_driver *driver;
 
-       struct mutex mutex;
        struct list_head list;
        struct list_head card_list;
 
index 4c8f8a23a0e9de132827fc041438fc1e07a4892c..cc7bb7ad96772e9949420a734261144d64e37433 100644 (file)
@@ -4362,7 +4362,6 @@ int snd_soc_register_codec(struct device *dev,
        codec->dev = dev;
        codec->driver = codec_drv;
        codec->component.val_bytes = codec_drv->reg_word_size;
-       mutex_init(&codec->mutex);
 
 #ifdef CONFIG_DEBUG_FS
        codec->component.init_debugfs = soc_init_codec_debugfs;