diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/davinci_nand.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index e7129591c9c7..ad51f8ef0d4f 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c | |||
@@ -313,7 +313,7 @@ static int nand_davinci_correct_4bit(struct mtd_info *mtd, | |||
313 | u32 syndrome[4]; | 313 | u32 syndrome[4]; |
314 | u32 ecc_state; | 314 | u32 ecc_state; |
315 | unsigned num_errors, corrected; | 315 | unsigned num_errors, corrected; |
316 | unsigned long timeo = jiffies + msecs_to_jiffies(100); | 316 | unsigned long timeo; |
317 | 317 | ||
318 | /* All bytes 0xff? It's an erased page; ignore its ECC. */ | 318 | /* All bytes 0xff? It's an erased page; ignore its ECC. */ |
319 | for (i = 0; i < 10; i++) { | 319 | for (i = 0; i < 10; i++) { |
@@ -373,6 +373,7 @@ compare: | |||
373 | * long as ECC_STATE reads less than 4. After that, ECC HW has entered | 373 | * long as ECC_STATE reads less than 4. After that, ECC HW has entered |
374 | * correction state. | 374 | * correction state. |
375 | */ | 375 | */ |
376 | timeo = jiffies + usecs_to_jiffies(100); | ||
376 | do { | 377 | do { |
377 | ecc_state = (davinci_nand_readl(info, | 378 | ecc_state = (davinci_nand_readl(info, |
378 | NANDFSR_OFFSET) >> 8) & 0x0f; | 379 | NANDFSR_OFFSET) >> 8) & 0x0f; |