Commit e29816f3307624e019ffb0f4dbdc2945b3042118

Authored by Stefan Roese
Committed by Scott Wood
1 parent 535abb96fb

nand_spl: nand_boot.c: Remove last CONFIG_SYS_NAND_READ_DELAY occurance

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>

Showing 1 changed file with 2 additions and 5 deletions Side-by-side Diff

nand_spl/nand_boot.c
... ... @@ -33,11 +33,8 @@
33 33 struct nand_chip *this = mtd->priv;
34 34 int page_addr = page + block * CONFIG_SYS_NAND_PAGE_COUNT;
35 35  
36   - if (this->dev_ready)
37   - while (!this->dev_ready(mtd))
38   - ;
39   - else
40   - CONFIG_SYS_NAND_READ_DELAY;
  36 + while (!this->dev_ready(mtd))
  37 + ;
41 38  
42 39 /* Begin command latch cycle */
43 40 this->cmd_ctrl(mtd, cmd, NAND_CTRL_CLE | NAND_CTRL_CHANGE);