diff options
Diffstat (limited to 'sound/soc/codecs/ad1836.c')
-rw-r--r-- | sound/soc/codecs/ad1836.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c index 11b62dee842c..217538423225 100644 --- a/sound/soc/codecs/ad1836.c +++ b/sound/soc/codecs/ad1836.c | |||
@@ -278,7 +278,7 @@ static int ad1836_register(struct ad1836_priv *ad1836) | |||
278 | mutex_init(&codec->mutex); | 278 | mutex_init(&codec->mutex); |
279 | INIT_LIST_HEAD(&codec->dapm_widgets); | 279 | INIT_LIST_HEAD(&codec->dapm_widgets); |
280 | INIT_LIST_HEAD(&codec->dapm_paths); | 280 | INIT_LIST_HEAD(&codec->dapm_paths); |
281 | codec->private_data = ad1836; | 281 | snd_soc_codec_set_drvdata(codec, ad1836); |
282 | codec->reg_cache = ad1836->reg_cache; | 282 | codec->reg_cache = ad1836->reg_cache; |
283 | codec->reg_cache_size = AD1836_NUM_REGS; | 283 | codec->reg_cache_size = AD1836_NUM_REGS; |
284 | codec->name = "AD1836"; | 284 | codec->name = "AD1836"; |