ASoC: One more x86 typo fix
[deliverable/linux.git] / sound / soc / codecs / wm8960.c
index 2c5712dce1d5d01ca10ab5eb8904eafc05f5e4d3..054f5737319c62c48bcf2f46eda366785587be5a 100644 (file)
@@ -418,7 +418,9 @@ static int wm8960_add_widgets(struct snd_soc_codec *codec)
         * list each time to find the desired power state do so now
         * and save the result.
         */
-       list_for_each_entry(w, &codec->dapm.widgets, list) {
+       list_for_each_entry(w, &codec->card->widgets, list) {
+               if (w->dapm != &codec->dapm)
+                       continue;
                if (strcmp(w->name, "LOUT1 PGA") == 0)
                        wm8960->lout1 = w;
                if (strcmp(w->name, "ROUT1 PGA") == 0)
This page took 0.026637 seconds and 5 git commands to generate.