Explorar o código

[PATCH] nand: Fix patch merge problem

Signed-off-by: Stefan Roese <sr@denx.de>
Stefan Roese %!s(int64=18) %!d(string=hai) anos
pai
achega
e7f3e9ff01
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      drivers/nand/nand_base.c

+ 2 - 2
drivers/nand/nand_base.c

@@ -838,9 +838,9 @@ static int nand_wait(struct mtd_info *mtd, struct nand_chip *this, int state)
 	unsigned long	timeo;
 
 	if (state == FL_ERASING)
-		timeo += (HZ * 400) / 1000;
+ 		timeo = (CFG_HZ * 400) / 1000;
 	else
-		timeo += (HZ * 20) / 1000;
+		timeo = (CFG_HZ * 20) / 1000;
 
 	if ((state == FL_ERASING) && (this->options & NAND_IS_AND))
 		this->cmdfunc(mtd, NAND_CMD_STATUS_MULTI, -1, -1);