projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f0dc65
)
ASoC: count reaches 10001, not 10000.
author
Roel Kluin
<roel.kluin@gmail.com>
Sun, 8 Feb 2009 17:17:37 +0000
(18:17 +0100)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Sun, 8 Feb 2009 20:40:24 +0000
(20:40 +0000)
With a postfix increment count reaches 10001, not 10000.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/blackfin/bf5xx-ad73311.c
patch
|
blob
|
history
diff --git
a/sound/soc/blackfin/bf5xx-ad73311.c
b/sound/soc/blackfin/bf5xx-ad73311.c
index 7f2a5e199075421ef0ebee1097139a2671f2f6d2..edfbdc024e663d9ac6ae1048086d84334518a9cd 100644
(file)
--- 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;
}