From: Brian Norris Date: Sat, 10 Aug 2013 08:03:33 +0000 (-0700) Subject: mtd: nand: lpc32xx_slc: don't call nand_default_bbt directly X-Git-Tag: v3.13-rc1~98^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=252026ab9382b5204b7ccd152863a49ae7408656;p=pandora-kernel.git mtd: nand: lpc32xx_slc: don't call nand_default_bbt directly This driver is doing some strange logic here. If it doesn't have flash-based BBT enabled, it allows nand_scan_tail() to scan the BBT. But if it is using flash-based BBT, it tells nand_scan_tail() to skip scanning, then it immediately calls the default BBT scanning function itself. As I read it, this logic is equivalent to the default nand_scan_tail() behavior without interfering with NAND_SKIP_BBTSCAN or calling nand_default_bbt() directly at all. Signed-off-by: Brian Norris --- Reading git-diff-tree failed