summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMax Krummenacher <max.oss.09@gmail.com>2016-06-13 10:15:47 +0200
committerScott Wood <oss@buserror.net>2016-06-19 19:19:30 -0500
commite1c29086d58f619423f0648748d0678af28f9871 (patch)
treecdea9c4841d33487f93b7a2ab880d74a69bf78d4 /drivers/mtd
parent61717571f2b55747e394f217b2fd519213433f88 (diff)
downloadu-boot-imx-e1c29086d58f619423f0648748d0678af28f9871.zip
u-boot-imx-e1c29086d58f619423f0648748d0678af28f9871.tar.gz
u-boot-imx-e1c29086d58f619423f0648748d0678af28f9871.tar.bz2
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/nand_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd/nand/nand_util.c
index 5bba66a..e8bcc34 100644
--- a/drivers/mtd/nand/nand_util.c
+++ b/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,
};