summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/nand_imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_imx.c b/drivers/mtd/nand/nand_imx.c
index 3d4082fe18..0f20e9d394 100644
--- a/drivers/mtd/nand/nand_imx.c
+++ b/drivers/mtd/nand/nand_imx.c
@@ -1022,7 +1022,7 @@ static void imx_nand_command(struct nand_chip *chip, unsigned command,
*/
if (command == NAND_CMD_READOOB) {
host->send_page(host, NFC_OUTPUT);
- copy_spare(mtd, 1, host->data_buf + mtd->writesize);
+ copy_spare(chip, 1, host->data_buf + mtd->writesize);
}
break;