Browse Source

nand: nand torture: follow sync with linux v4.6

follow parameter name change (nand to mtd) to fix compiler error.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Max Krummenacher 9 years ago
parent
commit
e1c29086d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/mtd/nand/nand_util.c

+ 1 - 1
drivers/mtd/nand/nand_util.c

@@ -820,7 +820,7 @@ int nand_torture(struct mtd_info *mtd, loff_t offset)
 {
 	u_char patterns[] = {0xa5, 0x5a, 0x00};
 	struct erase_info instr = {
-		.mtd = nand,
+		.mtd = mtd,
 		.addr = offset,
 		.len = mtd->erasesize,
 	};