aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8960.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8960.c')
-rw-r--r--sound/soc/codecs/wm8960.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 2c5712dce1d5..054f5737319c 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -418,7 +418,9 @@ static int wm8960_add_widgets(struct snd_soc_codec *codec)
418 * list each time to find the desired power state do so now 418 * list each time to find the desired power state do so now
419 * and save the result. 419 * and save the result.
420 */ 420 */
421 list_for_each_entry(w, &codec->dapm.widgets, list) { 421 list_for_each_entry(w, &codec->card->widgets, list) {
422 if (w->dapm != &codec->dapm)
423 continue;
422 if (strcmp(w->name, "LOUT1 PGA") == 0) 424 if (strcmp(w->name, "LOUT1 PGA") == 0)
423 wm8960->lout1 = w; 425 wm8960->lout1 = w;
424 if (strcmp(w->name, "ROUT1 PGA") == 0) 426 if (strcmp(w->name, "ROUT1 PGA") == 0)