]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: do not use mtd->block_markbad directly
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 2 Jan 2012 11:59:12 +0000 (13:59 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:26:26 +0000 (18:26 +0000)
commit800ffd3496987e91f599a135060ef49731e045ac
treea62c4985597e6ce01d8f8ab07f67212357e2a846
parentd58b27ed58a30faf376e40d19945f34301944b8d
mtd: do not use mtd->block_markbad directly

Instead, use the new 'mtd_can_have_bb()', or just rely on 'mtd_block_markbad()'
return code, which will be -EOPNOTSUPP if bad blocks are not supported.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdchar.c
drivers/mtd/mtdconcat.c
drivers/mtd/mtdoops.c
drivers/mtd/mtdswap.c
fs/jffs2/wbuf.c
include/linux/mtd/mtd.h