summaryrefslogtreecommitdiff
path: root/common/lcd.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-03-16 14:41:22 (GMT)
committerTom Rini <trini@konsulko.com>2016-03-27 13:12:17 (GMT)
commitf8f58fbb09bcec7a77dddbcfab62153b102ae775 (patch)
treeeb9a4ecfdf352b60a0b91eef22ffb3654971a412 /common/lcd.c
parentd990f5c834f1b42293fb53e4fd7f3aa988184196 (diff)
downloadu-boot-fsl-qoriq-f8f58fbb09bcec7a77dddbcfab62153b102ae775.tar.xz
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/lcd.c')
-rw-r--r--common/lcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/lcd.c b/common/lcd.c
index 51705ad..783626e 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
}