From: Marcel Ziswiler Date: Sun, 22 Jun 2008 14:30:06 +0000 (+0200) Subject: NAND: chip->state does not always get set. X-Git-Tag: v2008.10-rc1~181^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eafcabd15f00c142156235c519fcc55b10993241;p=u-boot NAND: chip->state does not always get set. Fixes an issue with chip->state not always being set causing troubles. Signed-off-by: Marcel Ziswiler Signed-off-by: Scott Wood --- diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index cf2f374554..a29ff1146f 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -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