diff mbox

[5/6] ASoC: da732x: Remove unused codec field form da732x_priv struct

Message ID 1410288165-32127-5-git-send-email-lars@metafoo.de (mailing list archive)
State Accepted
Commit ee6b42ee21b16aa322758fdab0d57082761b09fd
Headers show

Commit Message

Lars-Peter Clausen Sept. 9, 2014, 6:42 p.m. UTC
The field is initialized in the probe callback, but never used again. So it
can be removed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/codecs/da732x.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/da732x.c b/sound/soc/codecs/da732x.c
index edcbfea..c28cf33 100644
--- a/sound/soc/codecs/da732x.c
+++ b/sound/soc/codecs/da732x.c
@@ -35,7 +35,6 @@ 
 
 struct da732x_priv {
 	struct regmap *regmap;
-	struct snd_soc_codec *codec;
 
 	unsigned int sysclk;
 	bool pll_en;
@@ -1512,8 +1511,6 @@  static int da732x_probe(struct snd_soc_codec *codec)
 {
 	struct da732x_priv *da732x = snd_soc_codec_get_drvdata(codec);
 
-	da732x->codec = codec;
-
 	da732x_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
 
 	return 0;