]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/nand/nand_base.c
Merge with http://opensource.freescale.com/pub/scm/u-boot-83xx.git
[karo-tx-uboot.git] / drivers / nand / nand_base.c
index 851df1176d7c58bd4ff6e592047193f77d103097..7fdf57b1779163975b1fb4e89293887eb7d0c927 100644 (file)
@@ -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);