Skip to content
Snippets Groups Projects
Commit efa1f43b authored by Tom Rini's avatar Tom Rini
Browse files

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: default avatarTom Rini <trini@ti.com>
parent c413a004
No related branches found
No related tags found
No related merge requests found
...@@ -1167,7 +1167,9 @@ static struct nand_bbt_descr bbt_mirror_descr = { ...@@ -1167,7 +1167,9 @@ static struct nand_bbt_descr bbt_mirror_descr = {
int board_nand_init(struct nand_chip *this) int board_nand_init(struct nand_chip *this)
{ {
struct mtd_info *mtd; struct mtd_info *mtd;
#ifdef MXC_NFC_V2_1
uint16_t tmp; uint16_t tmp;
#endif
#ifdef CONFIG_SYS_NAND_USE_FLASH_BBT #ifdef CONFIG_SYS_NAND_USE_FLASH_BBT
this->options |= NAND_USE_FLASH_BBT; this->options |= NAND_USE_FLASH_BBT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment