ASoC: Set codec->dev for AC97 devices
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 28 Jan 2010 12:36:29 +0000 (12:36 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 28 Jan 2010 14:35:43 +0000 (14:35 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/soc-core.c

index 9085b40fa04b412e2cc7b4a9fdc61fe8a95a193d..ca89c782132df6f7fa58ed998f32ef2411d5bd96 100644 (file)
@@ -1368,6 +1368,7 @@ int snd_soc_new_ac97_codec(struct snd_soc_codec *codec,
 
        codec->ac97->bus->ops = ops;
        codec->ac97->num = num;
+       codec->dev = &codec->ac97->dev;
        mutex_unlock(&codec->mutex);
        return 0;
 }