From 5017686683f7c2eb12bb966924c857622e9cdb94 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Thu, 21 Nov 2013 03:06:42 +0100 Subject: colibri_vf: fix build warning Add an explicit cast to avoid the following build warning: colibri_vf.c:225:23: warning: initialization makes pointer from integer without a cast [enabled by default] --- board/toradex/colibri_vf/colibri_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/toradex/colibri_vf/colibri_vf.c b/board/toradex/colibri_vf/colibri_vf.c index 97eaa9e6c4..62e0702c90 100644 --- a/board/toradex/colibri_vf/colibri_vf.c +++ b/board/toradex/colibri_vf/colibri_vf.c @@ -222,7 +222,7 @@ int checkboard(void) unsigned long ddr_ctrl_init(void) { - volatile u32 *pMem = 0x80000000; + volatile u32 *pMem = (u32 *)0x80000000; u32 temp = 0; int dram_size, rows, cols, banks, port; -- cgit v1.2.3