diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index cf84d825171..736949fbb4d 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1234,7 +1234,7 @@ platform_err: | |||
1234 | codec_dev->remove(pdev); | 1234 | codec_dev->remove(pdev); |
1235 | 1235 | ||
1236 | cpu_dai_err: | 1236 | cpu_dai_err: |
1237 | for (i--; i > 0; i--) { | 1237 | for (i--; i >= 0; i--) { |
1238 | struct snd_soc_cpu_dai *cpu_dai = machine->dai_link[i].cpu_dai; | 1238 | struct snd_soc_cpu_dai *cpu_dai = machine->dai_link[i].cpu_dai; |
1239 | if (cpu_dai->remove) | 1239 | if (cpu_dai->remove) |
1240 | cpu_dai->remove(pdev); | 1240 | cpu_dai->remove(pdev); |