aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/chips/cfi_cmdset_0001.c2
-rw-r--r--drivers/mtd/nand/nand_base.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
index 11de54535526..f69184a92eb2 100644
--- a/drivers/mtd/chips/cfi_cmdset_0001.c
+++ b/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -1086,7 +1086,7 @@ static int inval_cache_and_wait_for_operation(
1086 } 1086 }
1087 spin_lock(chip->mutex); 1087 spin_lock(chip->mutex);
1088 1088
1089 if (chip->state != chip_state) { 1089 while (chip->state != chip_state) {
1090 /* Someone's suspended the operation: sleep */ 1090 /* Someone's suspended the operation: sleep */
1091 DECLARE_WAITQUEUE(wait, current); 1091 DECLARE_WAITQUEUE(wait, current);
1092 set_current_state(TASK_UNINTERRUPTIBLE); 1092 set_current_state(TASK_UNINTERRUPTIBLE);
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index eed3271b99cc..dfe56e03e48b 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -1493,6 +1493,7 @@ static void nand_write_page_syndrome(struct mtd_info *mtd,
1493 * @buf: the data to write 1493 * @buf: the data to write
1494 * @page: page number to write 1494 * @page: page number to write
1495 * @cached: cached programming 1495 * @cached: cached programming
1496 * @raw: use _raw version of write_page
1496 */ 1497 */
1497static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip, 1498static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip,
1498 const uint8_t *buf, int page, int cached, int raw) 1499 const uint8_t *buf, int page, int cached, int raw)