summaryrefslogtreecommitdiff
path: root/common/lcd.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-08-23 14:27:54 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:37 -0700
commit99384bd7413b217df6bf4a792a140d82b473a0a0 (patch)
tree02fadade577a68b060da379926f82b12e228281f /common/lcd.c
parent9485367c33fa0f98a712f8357074455d1b6778de (diff)
Correct cast in LCD cache flush
This case was incorrect and gives warnings on 64-bit machines. BUG=chromium-os:19353 TEST=build and boot on Seaboard Change-Id: Id467aa27100701e971ddcddfec57347f79675d99 Reviewed-on: http://gerrit.chromium.org/gerrit/6522 Reviewed-by: Stefan Reinauer <reinauer@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
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 f95cab4923..8e8e5ae1ac 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -116,8 +116,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)));
}
void lcd_set_flush_dcache(int flush)