Forráskód Böngészése

da8xxevm: Fix warning: unused variable 'val'

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Wolfgang Denk 13 éve
szülő
commit
6f0d7ae265
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      board/davinci/da8xxevm/da850evm.c

+ 3 - 1
board/davinci/da8xxevm/da850evm.c

@@ -280,12 +280,14 @@ u32 get_board_rev(void)
 
 
 int board_init(void)
 int board_init(void)
 {
 {
+#ifdef CONFIG_USE_NOR
 	u32 val;
 	u32 val;
+#endif
+
 #ifndef CONFIG_USE_IRQ
 #ifndef CONFIG_USE_IRQ
 	irq_init();
 	irq_init();
 #endif
 #endif
 
 
-
 #ifdef CONFIG_NAND_DAVINCI
 #ifdef CONFIG_NAND_DAVINCI
 	/*
 	/*
 	 * NAND CS setup - cycle counts based on da850evm NAND timings in the
 	 * NAND CS setup - cycle counts based on da850evm NAND timings in the