mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-22 12:23:12 +01:00
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>
This commit is contained in:
parent
d990f5c834
commit
f8f58fbb09
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue