diff mbox

[U-Boot,09/10] board/mx1ads/mx1ads.c: Fix GCC 4.6 warning

Message ID 1321744338-13207-10-git-send-email-agust@denx.de
State Accepted
Commit 5076c7ab71f84f241534afd39153fa53640a1ee2
Headers show

Commit Message

Anatolij Gustschin Nov. 19, 2011, 11:12 p.m. UTC
Fix:
mx1ads.c: In function 'board_early_init_f':
mx1ads.c:83:24: warning: variable 'tmp' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 board/mx1ads/mx1ads.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

Comments

Heiko Schocher Nov. 23, 2011, 7:23 a.m. UTC | #1
Hello Anatolij,

Anatolij Gustschin wrote:
> Fix:
> mx1ads.c: In function 'board_early_init_f':
> mx1ads.c:83:24: warning: variable 'tmp' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  board/mx1ads/mx1ads.c |    7 +++----
>  1 files changed, 3 insertions(+), 4 deletions(-)

Applied to u-boot-staging hs@denx.de

Thanks!

bye,
Heiko
diff mbox

Patch

diff --git a/board/mx1ads/mx1ads.c b/board/mx1ads/mx1ads.c
index 86b49fb..da9e21d 100644
--- a/board/mx1ads/mx1ads.c
+++ b/board/mx1ads/mx1ads.c
@@ -27,6 +27,7 @@ 
 #include <netdev.h>
 /*#include <mc9328.h>*/
 #include <asm/arch/imx-regs.h>
+#include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -80,8 +81,6 @@  static u32 mc9328sid;
 
 int board_early_init_f(void)
 {
-	volatile unsigned int tmp;
-
 	mc9328sid = SIDR;
 
 	GPCR = 0x000003AB;	/* I/O pad driving strength     */
@@ -107,8 +106,8 @@  int board_early_init_f(void)
 	GIUS (0) &= 0xFF3FFFFF;
 	GPR (0) &= 0xFF3FFFFF;
 
-	tmp = *(unsigned int *) (0x1500000C);
-	tmp = *(unsigned int *) (0x1500000C);
+	readl(0x1500000C);
+	readl(0x1500000C);
 
 	SetAsynchMode ();