From: Brian Norris Date: Sat, 28 Feb 2015 10:13:10 +0000 (-0800) Subject: mtd: diskonchip: don't call nand_scan_bbt() directly X-Git-Tag: omap-for-v4.2/fixes-rc1^2~143^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d24fe0c3e8a79579fdf966c8cff530962742f79c;p=pandora-kernel.git mtd: diskonchip: don't call nand_scan_bbt() directly The diskonchip driver almost uses the default nand_base hooks as-is, except that it provides custom on-flash BBT descriptors and avoids using factory-marked bad blockers. So let's refactor the BBT initialization code into a private 'late_init' hook which handles all the private details. Note the usage of NAND_SKIP_BBTSCAN, which allows us to defer the BBT scan until we've prepared everything. Signed-off-by: Brian Norris --- Reading git-diff-tree failed