From: Mark Brown Date: Thu, 28 Jan 2010 12:36:29 +0000 (+0000) Subject: ASoC: Set codec->dev for AC97 devices X-Git-Tag: v2.6.34-rc1~3^2~3^2~46 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2718625fba1e07bf2ce8a752036658737c1f76a7;p=uclinux-h8%2Flinux.git ASoC: Set codec->dev for AC97 devices Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 9085b40fa04b..ca89c782132d 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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; }