Skip to content

Commit

Permalink
ASoC: Set codec->dev for AC97 devices
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Mark Brown committed Jan 28, 2010
1 parent e03a8d2 commit 2718625
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2718625

Please sign in to comment.