diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-04-16 20:49:17 (GMT) |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-04-23 14:09:18 (GMT) |
commit | 6e60c14810d8da792e418fdcb2110b4185d1b9a2 (patch) | |
tree | e0e75339ed6a166f2f1e3458ddf80200ba69fdb0 /arch/microblaze/kernel/early_printk.c | |
parent | 04e3a553e0cbed369e5649c472ac317b6c45215d (diff) | |
download | linux-6e60c14810d8da792e418fdcb2110b4185d1b9a2.tar.xz |
microblaze: iowrite upon timeout
retries reaches -1, so the iowrite occurrs upon timeout.
Acked-by: John Williams <john.williams@petalogix.com>
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/early_printk.c')
-rw-r--r-- | arch/microblaze/kernel/early_printk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/early_printk.c b/arch/microblaze/kernel/early_printk.c index 62cc789..4b0f0fd 100644 --- a/arch/microblaze/kernel/early_printk.c +++ b/arch/microblaze/kernel/early_printk.c @@ -36,7 +36,7 @@ static void early_printk_putc(char c) unsigned retries = 10000; /* read status bit - 0x8 offset */ - while (retries-- && (in_be32(base_addr + 8) & (1 << 3))) + while (--retries && (in_be32(base_addr + 8) & (1 << 3))) ; /* Only attempt the iowrite if we didn't timeout */ |