ASoC: wm8994: Remove ASoC level register cache sync
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 31 Jan 2012 14:51:29 +0000 (14:51 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 31 Jan 2012 15:24:58 +0000 (15:24 +0000)
Now we've switched over to regmap the ASoC level cache sync will be
ineffectual and potentially harmful as there is no longer an ASoC level
cache.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c

index 93d27b6602571c3f600f9272defe0b05f12a8c3b..8623950d55f88db147cbe5155879ebdaa36c8392 100644 (file)
@@ -2753,11 +2753,6 @@ static int wm8994_resume(struct snd_soc_codec *codec)
                codec->cache_only = 0;
        }
 
-       /* Restore the registers */
-       ret = snd_soc_cache_sync(codec);
-       if (ret != 0)
-               dev_err(codec->dev, "Failed to sync cache: %d\n", ret);
-
        wm8994_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
 
        for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) {