aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlexander Graf2016-03-16 15:41:22 +0100
committerTom Rini2016-03-27 09:12:17 -0400
commitf8f58fbb09bcec7a77dddbcfab62153b102ae775 (patch)
treeeb9a4ecfdf352b60a0b91eef22ffb3654971a412 /common
parentd990f5c834f1b42293fb53e4fd7f3aa988184196 (diff)
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 <agraf@suse.de>
Diffstat (limited to 'common')
-rw-r--r--common/lcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/lcd.c b/common/lcd.c
index 51705adeaf7..783626e3d54 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
}