提交 67137a5d 编写于 作者: R Roel Kluin 提交者: Mark Brown

ASoC: count reaches 10001, not 10000.

With a postfix increment count reaches 10001, not 10000.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 8f0dc655
...@@ -114,7 +114,7 @@ static int snd_ad73311_configure(void) ...@@ -114,7 +114,7 @@ static int snd_ad73311_configure(void)
SSYNC(); SSYNC();
/* When TUVF is set, the data is already send out */ /* When TUVF is set, the data is already send out */
while (!(status & TUVF) && count++ < 10000) { while (!(status & TUVF) && ++count < 10000) {
udelay(1); udelay(1);
status = bfin_read_SPORT_STAT(); status = bfin_read_SPORT_STAT();
SSYNC(); SSYNC();
...@@ -123,7 +123,7 @@ static int snd_ad73311_configure(void) ...@@ -123,7 +123,7 @@ static int snd_ad73311_configure(void)
SSYNC(); SSYNC();
local_irq_enable(); local_irq_enable();
if (count == 10000) { if (count >= 10000) {
printk(KERN_ERR "ad73311: failed to configure codec\n"); printk(KERN_ERR "ad73311: failed to configure codec\n");
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册