From: Brian Norris Date: Wed, 31 Jul 2013 00:52:58 +0000 (-0700) Subject: mtd: nand: refactor chip->block_markbad interface X-Git-Tag: v3.12-rc1~82^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a0edb251ae91c6f9b1f28dc165becd955666118;p=pandora-kernel.git mtd: nand: refactor chip->block_markbad interface The chip->block_markbad pointer should really only be responsible for writing a bad block marker for new bad blocks. It should not take care of BBT-related functionality, nor should it handle bookkeeping of bad block stats. This patch refactors the 3 users of the block_markbad interface (plus the default nand_base implementation) so that the common code is kept in nand_block_markbad_lowlevel(). It removes some inconsistencies between the various implementations and should allow for more centralized improvements in the future. Because gpmi-nand no longer needs the nand_update_bbt() function, let's stop exporting it as well. Signed-off-by: Brian Norris Acked-by: Huang Shijie (for gpmi-nand parts) Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed