From: Brian Norris Date: Sat, 19 Mar 2011 04:53:42 +0000 (-0700) Subject: mtd: nand: dynamic allocation of flash-based BBT structs X-Git-Tag: v3.0-rc1~32^2~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2f812df0b3d467db2ae5e3be38c36ff692ff99f;p=pandora-kernel.git mtd: nand: dynamic allocation of flash-based BBT structs It is nicer to dynamically create our badblock patterns than to statically define them. The nand_create_default_bbt_descr() function does a sufficient job of handling various bad block scanning options for either flash-based or non-flash-based BBTs, so we might as well use the function for both cases. This patch simplifies and shortens our code (and removes a TODO that I left a few months ago). Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed