]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - sound/soc/codecs/wm8974.c
ASoC: Add indirection for CODEC private data
[mv-sheeva.git] / sound / soc / codecs / wm8974.c
index ee637af4737a039c252c82c287f5c37e22b4ee37..1e4da32c4078f00793b83a691a651fe3432906e2 100644 (file)
@@ -676,7 +676,7 @@ static __devinit int wm8974_register(struct wm8974_priv *wm8974)
        INIT_LIST_HEAD(&codec->dapm_widgets);
        INIT_LIST_HEAD(&codec->dapm_paths);
 
-       codec->private_data = wm8974;
+       snd_soc_codec_set_drvdata(codec, wm8974);
        codec->name = "WM8974";
        codec->owner = THIS_MODULE;
        codec->bias_level = SND_SOC_BIAS_OFF;