summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-01-28 12:36:29 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-01-28 14:35:43 +0000
commit2718625fba1e07bf2ce8a752036658737c1f76a7 (patch)
tree439afb33f9660c71c7d5627f18865883064bf824
parente03a8d2cf663429e2480a8db78b132ee300f79af (diff)
ASoC: Set codec->dev for AC97 devices
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
-rw-r--r--sound/soc/soc-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 9085b40fa04..ca89c782132 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;
}