NAND: Properly create JFFS2 cleanmarkers.
authorScott Wood <scottwood@freescale.com>
Wed, 29 Oct 2008 19:20:26 +0000 (14:20 -0500)
committerScott Wood <scottwood@freescale.com>
Wed, 29 Oct 2008 19:20:26 +0000 (14:20 -0500)
commitbd78bc6b2aebf5566aac464f936b88dfd97ab0bd
treee0ce1d6170b2286bc9fef6390b08c8035774afd3
parentf7fe57c09866b44692d18c8cf22828bd137ec58d
NAND: Properly create JFFS2 cleanmarkers.

As reported by Ilko Iliev <iliev@ronetix.at>, the "nand erase clean"
command is currently broken, and among other things causes all blocks
to be marked bad.

This implements it properly using MTD_OOB_AUTO, along with some
indentation fixes.

Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/nand_util.c