]> Pileus Git - ~andy/linux/blobdiff - sound/soc/codecs/sta32x.c
ASoC: sta32x: Fix cache sync
[~andy/linux] / sound / soc / codecs / sta32x.c
index 42c5b458b046419bbc7f93d97d17a2919393f0f4..ea78c172538cd49a3a26c74da070f13458141057 100644 (file)
@@ -331,7 +331,7 @@ static int sta32x_sync_coef_shadow(struct snd_soc_codec *codec)
 
 static int sta32x_cache_sync(struct snd_soc_codec *codec)
 {
-       struct sta32x_priv *sta32x = codec->control_data;
+       struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec);
        unsigned int mute;
        int rc;