mtd: nand: dynamic allocation of flash-based BBT structs
authorBrian Norris <computersforpeace@gmail.com>
Sat, 19 Mar 2011 04:53:42 +0000 (21:53 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 00:50:14 +0000 (01:50 +0100)
commita2f812df0b3d467db2ae5e3be38c36ff692ff99f
tree95f3451db3b485ab928b76e536cf526a41ac0995
parenta626743f579aa743473fd8b9215ca198bacf2ac4
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 <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_bbt.c