diff options
-rw-r--r-- | sound/soc/soc-dapm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 1f1e9657481a..231deb220506 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -3107,7 +3107,8 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, | |||
3107 | } | 3107 | } |
3108 | 3108 | ||
3109 | w->dapm = dapm; | 3109 | w->dapm = dapm; |
3110 | w->codec = dapm->component->codec; | 3110 | if (dapm->component) |
3111 | w->codec = dapm->component->codec; | ||
3111 | INIT_LIST_HEAD(&w->sources); | 3112 | INIT_LIST_HEAD(&w->sources); |
3112 | INIT_LIST_HEAD(&w->sinks); | 3113 | INIT_LIST_HEAD(&w->sinks); |
3113 | INIT_LIST_HEAD(&w->list); | 3114 | INIT_LIST_HEAD(&w->list); |