Commit 2718625f authored by Mark Brown's avatar Mark Brown

ASoC: Set codec->dev for AC97 devices

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent e03a8d2c
...@@ -1368,6 +1368,7 @@ int snd_soc_new_ac97_codec(struct snd_soc_codec *codec, ...@@ -1368,6 +1368,7 @@ int snd_soc_new_ac97_codec(struct snd_soc_codec *codec,
codec->ac97->bus->ops = ops; codec->ac97->bus->ops = ops;
codec->ac97->num = num; codec->ac97->num = num;
codec->dev = &codec->ac97->dev;
mutex_unlock(&codec->mutex); mutex_unlock(&codec->mutex);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment