summaryrefslogtreecommitdiff
path: root/board/mx1ads/mx1ads.c
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-11-19 13:12:17 +0000
committerHeiko Schocher <hs@denx.de>2011-11-23 08:14:27 +0100
commit5076c7ab71f84f241534afd39153fa53640a1ee2 (patch)
tree85a3fb0ab75127314dccd097297cdceb65b67968 /board/mx1ads/mx1ads.c
parent6859ea740e0cb5f96bf3da328e9d4904dc925eae (diff)
downloadu-boot-imx-5076c7ab71f84f241534afd39153fa53640a1ee2.zip
u-boot-imx-5076c7ab71f84f241534afd39153fa53640a1ee2.tar.gz
u-boot-imx-5076c7ab71f84f241534afd39153fa53640a1ee2.tar.bz2
board/mx1ads/mx1ads.c: Fix GCC 4.6 warning
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>
Diffstat (limited to 'board/mx1ads/mx1ads.c')
-rw-r--r--board/mx1ads/mx1ads.c7
1 files changed, 3 insertions, 4 deletions
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 ();