summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPatrick Turley <patrick.turley@freescale.com>2010-03-25 09:58:44 -0500
committerPatrick Turley <patrick.turley@freescale.com>2010-03-25 22:37:22 -0500
commit9d15f10eb2db4670ef97915e950c18cf227e0343 (patch)
tree4119932c737169307c9fa0e2895d6e3420a056b0 /drivers
parent5c47a7f7c1dc45e767526b88a98142a9d3a350da (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>
Diffstat (limited to 'drivers')
-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. */