Skip to contentSkip to conversation

ASoC: wm8996: Avoid a redundant i2c_get_clientdata call in wm8996_i2c_remove

PATCH Applied Axel Lin 3 participants 3 messages Oct 24, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: wm8996: Avoid a redundant i2c_get_clientdata call in wm8996_i2c_remove

---
 sound/soc/codecs/wm8996.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8996.c +1 -1
index 645c980..32324c9 100644
@@ -3144,7 +3144,7 @@ static __devexit int wm8996_i2c_remove(struct i2c_client *client)
 	snd_soc_unregister_codec(&client->dev);
 	if (wm8996->pdata.ldo_ena > 0)
 		gpio_free(wm8996->pdata.ldo_ena);
-	kfree(i2c_get_clientdata(client));
+	kfree(wm8996);
 	return 0;
 }
 
Signature · 1 line
1.7.5.4
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Axel Lin

---
 sound/soc/codecs/wm8996.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8996.c +0 -0
index 645c980..32324c9 100644

sound/soc/codecs/wm8996.c static __devexit int wm8996_i2c_remove(struct i2c_client *client) · line 3150

Quoted 8 lines
sound/soc/codecs/wm8996.c +1 -1
@@ -3144,7 +3144,7 @@ static __devexit int wm8996_i2c_remove(struct i2c_client *client)
        snd_soc_unregister_codec(&client->dev);
        if (wm8996->pdata.ldo_ena > 0)
                gpio_free(wm8996->pdata.ldo_ena);
-       kfree(i2c_get_clientdata(client));
+       kfree(wm8996);
        return 0;
  }
 

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel