summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-04-25 14:19:00 +0200
committerMichal Simek <michal.simek@xilinx.com>2014-05-14 07:43:34 +0200
commitec9638659f5ed9cbb691c09fb72aee12c3426601 (patch)
treea156a15370b382772c280fd074af7c77173d9d32 /arch/arm
parent3b5b599f171ee66bbb514fddd6361a84f1e198f5 (diff)
downloadu-boot-imx-ec9638659f5ed9cbb691c09fb72aee12c3426601.zip
u-boot-imx-ec9638659f5ed9cbb691c09fb72aee12c3426601.tar.gz
u-boot-imx-ec9638659f5ed9cbb691c09fb72aee12c3426601.tar.bz2
ARM: zynq: Fix sparse warning in ddrc.c
Warning: arch/arm/cpu/armv7/zynq/ddrc.c:43:24: warning: Using plain integer as NULL pointer Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv7/zynq/ddrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/zynq/ddrc.c b/arch/arm/cpu/armv7/zynq/ddrc.c
index ba6a6ae..302654d 100644
--- a/arch/arm/cpu/armv7/zynq/ddrc.c
+++ b/arch/arm/cpu/armv7/zynq/ddrc.c
@@ -40,7 +40,7 @@ void zynq_ddrc_init(void)
* first stage bootloader. To get ECC to work all memory has
* been initialized by writing any value.
*/
- memset(0, 0, 1 * 1024 * 1024);
+ memset((void *)0, 0, 1 * 1024 * 1024);
} else {
puts("Memory: ECC disabled\n");
}