]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ASoC: Fix register cache setup WM8994 for multi-component
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 16 Nov 2010 18:39:19 +0000 (18:39 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Nov 2010 18:32:51 +0000 (18:32 +0000)
During the multi-component conversion the WM8994 register cache init
got lost.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/wm8994.c

index 0db59c3aa5d4dbb6cd2a821d29eaa75887290977..830dfdd66c5f6c3685ca542cb4c28cec1cabf008 100644 (file)
@@ -3903,6 +3903,8 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
                return -ENOMEM;
        snd_soc_codec_set_drvdata(codec, wm8994);
 
+       codec->reg_cache = &wm8994->reg_cache;
+
        wm8994->pdata = dev_get_platdata(codec->dev->parent);
        wm8994->codec = codec;