diff options
author | Marcel Ziswiler <marcel@ziswiler.com> | 2008-06-22 16:30:06 +0200 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2008-08-12 11:31:29 -0500 |
commit | eafcabd15f00c142156235c519fcc55b10993241 (patch) | |
tree | 41462c6e8937081fbe8c24054abd5b008be417eb /drivers/mtd/nand/nand_base.c | |
parent | 13f0fd94e3cae6f8a0d9fba5d367e311edc8ebde (diff) |
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/mtd/nand/nand_base.c')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |