diff options
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/cafe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/cafe.c b/drivers/mtd/nand/cafe.c index 1e877cbe7757..5ec82beb49df 100644 --- a/drivers/mtd/nand/cafe.c +++ b/drivers/mtd/nand/cafe.c | |||
@@ -265,10 +265,10 @@ static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command, | |||
265 | ndelay(100); | 265 | ndelay(100); |
266 | 266 | ||
267 | if (1) { | 267 | if (1) { |
268 | int c = 500000; | 268 | int c; |
269 | uint32_t irqs; | 269 | uint32_t irqs; |
270 | 270 | ||
271 | while (c--) { | 271 | for (c = 500000; c != 0; c--) { |
272 | irqs = cafe_readl(cafe, NAND_IRQ); | 272 | irqs = cafe_readl(cafe, NAND_IRQ); |
273 | if (irqs & doneint) | 273 | if (irqs & doneint) |
274 | break; | 274 | break; |