From: Artem Bityutskiy Date: Mon, 2 Jan 2012 11:59:12 +0000 (+0200) Subject: mtd: do not use mtd->block_markbad directly X-Git-Tag: v3.3-rc1~119^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=800ffd3496987e91f599a135060ef49731e045ac;p=pandora-kernel.git 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 Signed-off-by: David Woodhouse --- Reading git-diff-tree failed