]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nand: nand torture: follow sync with linux v4.6
authorMax Krummenacher <max.oss.09@gmail.com>
Mon, 13 Jun 2016 08:15:47 +0000 (10:15 +0200)
committerScott Wood <oss@buserror.net>
Mon, 20 Jun 2016 00:19:30 +0000 (19:19 -0500)
follow parameter name change (nand to mtd) to fix compiler error.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
drivers/mtd/nand/nand_util.c

index 5bba66a7284e6ae9e308b9bbf4cb68fdc483bcb0..e8bcc34ab487b513a2adaa2fcfa6fc97ba52d078 100644 (file)
@@ -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,
        };