ASoC: Set codec->dev for AC97 devices

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
Mark Brown 2010-01-28 12:36:29 +00:00
parent e03a8d2cf6
commit 2718625fba
1 changed files with 1 additions and 0 deletions

View 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;
}