summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm_hubs.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-25 21:10:03 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-04 02:03:56 +0400
commit8cb8e83bfa7cb63ad4b3c3b79410766da397124b (patch)
tree021519f23d274eee3adb4b8661b271a443f42991 /sound/soc/codecs/wm_hubs.c
parentacaf24f015b2bdd34032188d26c3092d6ca749b3 (diff)
downloadlinux-8cb8e83bfa7cb63ad4b3c3b79410766da397124b.tar.xz
ASoC: wm_hubs: Move CODEC stored in private data into wm_hubs
Further wm_hubs code will use this. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm_hubs.c')
-rw-r--r--sound/soc/codecs/wm_hubs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c
index 61baa48823cb..728a18010a49 100644
--- a/sound/soc/codecs/wm_hubs.c
+++ b/sound/soc/codecs/wm_hubs.c
@@ -1112,6 +1112,8 @@ int wm_hubs_add_analogue_routes(struct snd_soc_codec *codec,
struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec);
struct snd_soc_dapm_context *dapm = &codec->dapm;
+ hubs->codec = codec;
+
INIT_LIST_HEAD(&hubs->dcs_cache);
init_completion(&hubs->dcs_done);