summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel@ziswiler.com>2008-06-22 16:30:06 +0200
committerScott Wood <scottwood@freescale.com>2008-08-12 11:31:29 -0500
commiteafcabd15f00c142156235c519fcc55b10993241 (patch)
tree41462c6e8937081fbe8c24054abd5b008be417eb /drivers
parent13f0fd94e3cae6f8a0d9fba5d367e311edc8ebde (diff)
downloadu-boot-imx-eafcabd15f00c142156235c519fcc55b10993241.zip
u-boot-imx-eafcabd15f00c142156235c519fcc55b10993241.tar.gz
u-boot-imx-eafcabd15f00c142156235c519fcc55b10993241.tar.bz2
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 <marcel@ziswiler.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/nand_base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index cf2f374..a29ff11 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