]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lcd: Fix compile warning in 64bit mode
authorAlexander Graf <agraf@suse.de>
Wed, 16 Mar 2016 14:41:22 +0000 (15:41 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 13:12:17 +0000 (09:12 -0400)
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>
common/lcd.c

index 51705adeaf79918bce59a374a3319c6cb98a3cce..783626e3d54caf4fbdd4940892023a9171ded5df 100644 (file)
@@ -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
 }