From: Alexander Graf Date: Wed, 16 Mar 2016 14:41:22 +0000 (+0100) Subject: lcd: Fix compile warning in 64bit mode X-Git-Tag: v2016.05-rc1~158 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f8f58fbb09bcec7a77dddbcfab62153b102ae775;p=oweals%2Fu-boot.git lcd: Fix compile warning in 64bit mode When compiling the code for 64bit, the lcd code emits warnings because it tries to cast pointers to 32bit values. Fix it by casting them to longs instead, actually properly aligning with the function prototype. Signed-off-by: Alexander Graf --- diff --git a/common/lcd.c b/common/lcd.c index 51705adeaf..783626e3d5 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -66,8 +66,8 @@ void lcd_sync(void) int line_length; if (lcd_flush_dcache) - flush_dcache_range((u32)lcd_base, - (u32)(lcd_base + lcd_get_size(&line_length))); + flush_dcache_range((ulong)lcd_base, + (ulong)(lcd_base + lcd_get_size(&line_length))); #endif }