]> git.sur5r.net Git - u-boot/commitdiff
NAND: chip->state does not always get set.
authorMarcel Ziswiler <marcel@ziswiler.com>
Sun, 22 Jun 2008 14:30:06 +0000 (16:30 +0200)
committerScott Wood <scottwood@freescale.com>
Tue, 12 Aug 2008 16:31:29 +0000 (11:31 -0500)
Fixes an issue with chip->state not always being set causing troubles.

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/nand_base.c

index cf2f3745542b7ceae4626fe2b41e7524c3d0f77e..a29ff1146f2cc26cfb23be0876bf4affbdcb0802 100644 (file)
@@ -773,6 +773,7 @@ nand_get_device(struct nand_chip *chip, struct mtd_info *mtd, int new_state)
 #else
 static int nand_get_device (struct nand_chip *this, struct mtd_info *mtd, int new_state)
 {
+       this->state = new_state;
        return 0;
 }
 #endif