]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
nand_spl: nand_boot.c: Remove last CONFIG_SYS_NAND_READ_DELAY occurance
authorStefan Roese <sr@denx.de>
Mon, 16 May 2011 11:04:00 +0000 (13:04 +0200)
committerScott Wood <scottwood@freescale.com>
Mon, 16 May 2011 19:10:19 +0000 (14:10 -0500)
Remove the last CONFIG_SYS_NAND_READ_DELAY occurance from nand_boot.c.
I missed this one in patch a9c847cb [nand_spl: nand_boot.c: Remove
CONFIG_SYS_NAND_READ_DELAY].

This fixes a compile breakage on kilauea_nand for example.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
nand_spl/nand_boot.c

index 00df2a04ac4967b1a8edcd60e18ed9e5f5f4aea9..9545a9a7b51ea73173fc5935c4705e6e60575f2c 100644 (file)
@@ -33,11 +33,8 @@ static int nand_command(struct mtd_info *mtd, int block, int page, int offs, u8
        struct nand_chip *this = mtd->priv;
        int page_addr = page + block * CONFIG_SYS_NAND_PAGE_COUNT;
 
-       if (this->dev_ready)
-               while (!this->dev_ready(mtd))
-                       ;
-       else
-               CONFIG_SYS_NAND_READ_DELAY;
+       while (!this->dev_ready(mtd))
+               ;
 
        /* Begin command latch cycle */
        this->cmd_ctrl(mtd, cmd, NAND_CTRL_CLE | NAND_CTRL_CHANGE);