ASoC: cs35l33: Remove setting dapm->bias_level in cs35l33_set_bias_level
authorAxel Lin <axel.lin@ingics.com>
Tue, 28 Jun 2016 10:36:59 +0000 (18:36 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 28 Jun 2016 19:56:03 +0000 (20:56 +0100)
This is done by ASoC core now.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l33.c

index 90dc743a837859c4199c34fbef49bfadc632aebe..622a1111b21cab53a5f53de1b127b8fadf8fcf93 100644 (file)
@@ -365,7 +365,6 @@ static int cs35l33_set_bias_level(struct snd_soc_codec *codec,
                                  enum snd_soc_bias_level level)
 {
        unsigned int val;
-       struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
        struct cs35l33_private *priv = snd_soc_codec_get_drvdata(codec);
 
        switch (level) {
@@ -392,8 +391,6 @@ static int cs35l33_set_bias_level(struct snd_soc_codec *codec,
                return -EINVAL;
        }
 
-       dapm->bias_level = level;
-
        return 0;
 }