mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-20 21:51:20 +00:00
mxc nand: Fix warning on !MXC_NFC_V2_1
In board_nand_init() we only need the 'tmp' variable if MXC_NFC_V2_1 is defined. Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
c413a004ea
commit
efa1f43b7d
1 changed files with 2 additions and 0 deletions
|
@ -1167,7 +1167,9 @@ static struct nand_bbt_descr bbt_mirror_descr = {
|
|||
int board_nand_init(struct nand_chip *this)
|
||||
{
|
||||
struct mtd_info *mtd;
|
||||
#ifdef MXC_NFC_V2_1
|
||||
uint16_t tmp;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYS_NAND_USE_FLASH_BBT
|
||||
this->options |= NAND_USE_FLASH_BBT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue