summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-03-16 15:41:22 +0100
committerTom Rini <trini@konsulko.com>2016-03-27 09:12:17 -0400
commitf8f58fbb09bcec7a77dddbcfab62153b102ae775 (patch)
treeeb9a4ecfdf352b60a0b91eef22ffb3654971a412 /common
parentd990f5c834f1b42293fb53e4fd7f3aa988184196 (diff)
downloadu-boot-imx-f8f58fbb09bcec7a77dddbcfab62153b102ae775.zip
u-boot-imx-f8f58fbb09bcec7a77dddbcfab62153b102ae775.tar.gz
u-boot-imx-f8f58fbb09bcec7a77dddbcfab62153b102ae775.tar.bz2
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 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
}