]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: cq93vc: Don't use control data for core driver data
authorMark Brown <broonie@linaro.org>
Sat, 31 Aug 2013 12:51:38 +0000 (13:51 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:38:36 +0000 (00:38 +0100)
The platform data is being used to obtain the core driver data for the
device (which is a bit of an abuse but not the issue at hand) so reference
it directly in order to support refactoring to use regmap.

Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/cq93vc.c

index 23316c887b19211f7c7473767b956895abda397f..e2c4c0a896e2f9e22f9492cc9a720ee322427089 100644 (file)
@@ -79,7 +79,7 @@ static int cq93vc_set_dai_sysclk(struct snd_soc_dai *codec_dai,
                                 int clk_id, unsigned int freq, int dir)
 {
        struct snd_soc_codec *codec = codec_dai->codec;
-       struct davinci_vc *davinci_vc = codec->control_data;
+       struct davinci_vc *davinci_vc = codec->dev->platform_data;
 
        switch (freq) {
        case 22579200: