浏览代码

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>
Marcel Ziswiler 17 年之前
父节点
当前提交
eafcabd15f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/mtd/nand/nand_base.c

+ 1 - 0
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