]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fsl_elbc_nand: remove the bbt descriptors relocation fixup
authorMingkai Hu <Mingkai.hu@freescale.com>
Tue, 20 Oct 2009 08:58:17 +0000 (16:58 +0800)
committerScott Wood <scottwood@freescale.com>
Fri, 13 Nov 2009 22:56:18 +0000 (16:56 -0600)
The commit 66372fe2 manually relocated the bbt pattern pointer,
which can be removed by using full relocation.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
drivers/mtd/nand/fsl_elbc_nand.c

index 50cb4aa9dcf9f1932b60e89ae5a41f09da6a0924..146e9bf3cb6e9900c76d49a33d3e6b8c5b45a753 100644 (file)
@@ -766,9 +766,6 @@ int board_nand_init(struct nand_chip *nand)
        nand->waitfunc = fsl_elbc_wait;
 
        /* set up nand options */
-       /* redirect the pointer of bbt pattern to RAM */
-       bbt_main_descr.pattern = bbt_pattern;
-       bbt_mirror_descr.pattern = mirror_pattern;
        nand->bbt_td = &bbt_main_descr;
        nand->bbt_md = &bbt_mirror_descr;
 
@@ -815,7 +812,6 @@ int board_nand_init(struct nand_chip *nand)
        /* Large-page-specific setup */
        if (or & OR_FCM_PGS) {
                priv->page_size = 1;
-               largepage_memorybased.pattern = scan_ff_pattern;
                nand->badblock_pattern = &largepage_memorybased;
 
                /* adjust ecc setup if needed */