summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorPatrick Turley <patrick.turley@freescale.com>2010-03-25 09:58:44 -0500
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-05-25 11:20:17 +0200
commitc3d20d0e8317f33d921700f442c698c190c4a4b3 (patch)
tree0d3d0d3f6907ff9804c46786e73f5cd07dbb1dfc /drivers/mtd
parent41e4f89d9709ffd655320c1933f89e8e6c88d326 (diff)
ENGR00122007 Kernel panic caused by i.MX28 GPMI NAND Flash driver
Fixed the driver to properly initialize a variable. Signed-off-by: Patrick Turley <patrick.turley@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/gpmi1/gpmi-bbt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/gpmi1/gpmi-bbt.c b/drivers/mtd/nand/gpmi1/gpmi-bbt.c
index eeab0b7ee2f9..7888e5f2703d 100644
--- a/drivers/mtd/nand/gpmi1/gpmi-bbt.c
+++ b/drivers/mtd/nand/gpmi1/gpmi-bbt.c
@@ -157,6 +157,7 @@ static void gpmi_write_fcbs(struct mtd_info *mtd)
ops.oobbuf = (u8 *)fcb + mtd->writesize;
ops.ooblen = mtd->oobsize;
ops.ooboffs = 0;
+ ops.mode = MTD_OOB_RAW;
/* Loop over FCB locations in the search area. */