X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fmtd%2Fnand%2Fjz4740_nand.c;h=7a62cc33613c1f9e4eaac33da19e2b8c27bd74a3;hb=ddd37fe865bee8b17842a55ab917ae597fe8af0d;hp=a691fbc40397d747df6acf11f8872e2da89ddedd;hpb=eecf9e2e78c3af4304740804b3649f3d4b8a922a;p=u-boot diff --git a/drivers/mtd/nand/jz4740_nand.c b/drivers/mtd/nand/jz4740_nand.c index a691fbc403..7a62cc3361 100644 --- a/drivers/mtd/nand/jz4740_nand.c +++ b/drivers/mtd/nand/jz4740_nand.c @@ -4,10 +4,7 @@ * Copyright (c) 2007 Ingenic Semiconductor Inc. * Author: * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. + * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -256,7 +253,7 @@ int board_nand_init(struct nand_chip *nand) nand->ecc.strength = 4; nand->ecc.layout = &qi_lb60_ecclayout_2gb; nand->chip_delay = 50; - nand->options = NAND_USE_FLASH_BBT; + nand->bbt_options |= NAND_BBT_USE_FLASH; return 0; }