Merge branch 'topic/asoc' into for-linus
[pandora-kernel.git] / sound / soc / codecs / ad1836.c
index 11b62de..2175384 100644 (file)
@@ -278,7 +278,7 @@ static int ad1836_register(struct ad1836_priv *ad1836)
        mutex_init(&codec->mutex);
        INIT_LIST_HEAD(&codec->dapm_widgets);
        INIT_LIST_HEAD(&codec->dapm_paths);
-       codec->private_data = ad1836;
+       snd_soc_codec_set_drvdata(codec, ad1836);
        codec->reg_cache = ad1836->reg_cache;
        codec->reg_cache_size = AD1836_NUM_REGS;
        codec->name = "AD1836";