Skip to contentSkip to conversation

ASoC: alc5623: Remove unused mutex

PATCH Applied Axel Lin 3 participants 3 messages Sep 4, 2011 – Sep 6, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: alc5623: Remove unused mutex

Cc Arnaud Patard <[email protected]>
---
 sound/soc/codecs/alc5623.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
sound/soc/codecs/alc5623.c +0 -2
index eecffb5..0517315 100644
@@ -41,7 +41,6 @@ MODULE_PARM_DESC(caps_charge, "ALC5623 cap charge time (msecs)");
 struct alc5623_priv {
 	enum snd_soc_control_type control_type;
 	void *control_data;
-	struct mutex mutex;
 	u8 id;
 	unsigned int sysclk;
 	u16 reg_cache[ALC5623_VENDOR_ID2+2];
@@ -1052,7 +1051,6 @@ static int alc5623_i2c_probe(struct i2c_client *client,
 	i2c_set_clientdata(client, alc5623);
 	alc5623->control_data = client;
 	alc5623->control_type = SND_SOC_I2C;
-	mutex_init(&alc5623->mutex);
 
 	ret =  snd_soc_register_codec(&client->dev,
 		&soc_codec_device_alc5623, &alc5623_dai, 1);
Signature · 1 line
1.7.4.1
Acked-by on v1 1/1
#1 lore raw
Quoted 28 lines · Axel Lin
Cc Arnaud Patard <[email protected]>
---
 sound/soc/codecs/alc5623.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
sound/soc/codecs/alc5623.c +0 -1
index eecffb5..0517315 100644
@@ -41,7 +41,6 @@ MODULE_PARM_DESC(caps_charge, "ALC5623 cap charge time
 (msecs)");
 struct alc5623_priv {
       enum snd_soc_control_type control_type;
       void *control_data;
-       struct mutex mutex;
       u8 id;
       unsigned int sysclk;
       u16 reg_cache[ALC5623_VENDOR_ID2+2];
sound/soc/codecs/alc5623.c +0 -1
@@ -1052,7 +1051,6 @@ static int alc5623_i2c_probe(struct i2c_client
 *client,
       i2c_set_clientdata(client, alc5623);
       alc5623->control_data = client;
       alc5623->control_type = SND_SOC_I2C;
-       mutex_init(&alc5623->mutex);
 
       ret =  snd_soc_register_codec(&client->dev,
               &soc_codec_device_alc5623, &alc5623_dai, 1);
Quoted 6 lines

--
1.7.4.1