diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-02-08 18:17:37 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-02-08 21:40:24 +0100 |
commit | 67137a5d46d5a7c4cbdc66f03d1e2f397fe14b2b (patch) | |
tree | 724cbc420292ad101cd7fafd7ee8b8760d066f96 | |
parent | ASoC: Add initial support of Mitac mioa701 device SoC. (diff) | |
download | linux-67137a5d46d5a7c4cbdc66f03d1e2f397fe14b2b.tar.xz linux-67137a5d46d5a7c4cbdc66f03d1e2f397fe14b2b.zip |
ASoC: count reaches 10001, not 10000.
With a postfix increment count reaches 10001, not 10000.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/blackfin/bf5xx-ad73311.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/blackfin/bf5xx-ad73311.c b/sound/soc/blackfin/bf5xx-ad73311.c index 7f2a5e199075..edfbdc024e66 100644 --- a/sound/soc/blackfin/bf5xx-ad73311.c +++ b/sound/soc/blackfin/bf5xx-ad73311.c @@ -114,7 +114,7 @@ static int snd_ad73311_configure(void) SSYNC(); /* When TUVF is set, the data is already send out */ - while (!(status & TUVF) && count++ < 10000) { + while (!(status & TUVF) && ++count < 10000) { udelay(1); status = bfin_read_SPORT_STAT(); SSYNC(); @@ -123,7 +123,7 @@ static int snd_ad73311_configure(void) SSYNC(); local_irq_enable(); - if (count == 10000) { + if (count >= 10000) { printk(KERN_ERR "ad73311: failed to configure codec\n"); return -1; } |