projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c413a00
)
mxc nand: Fix warning on !MXC_NFC_V2_1
author
Tom Rini
<trini@ti.com>
Tue, 18 Sep 2012 16:24:22 +0000
(09:24 -0700)
committer
Tom Rini
<trini@ti.com>
Tue, 18 Sep 2012 16:24:22 +0000
(09:24 -0700)
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>
drivers/mtd/nand/mxc_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/mxc_nand.c
b/drivers/mtd/nand/mxc_nand.c
index cf2a7b086674d01c95bc41630bb9b0e9150849fa..d0ded483e2a41342387be2a19f0e1a086cbad92c 100644
(file)
--- a/
drivers/mtd/nand/mxc_nand.c
+++ b/
drivers/mtd/nand/mxc_nand.c
@@
-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;