From: Daniel Schwierzeck Date: Sat, 9 Jan 2016 16:32:45 +0000 (+0100) Subject: MIPS: malta: fix IO accessor call X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=8061cfc942f22e7e9a98897d041966f619308cad;p=u-boot.git MIPS: malta: fix IO accessor call Use void pointer as address argument for readl(). This is required for the upcoming MIPS asm header file and I/O accessor update. Signed-off-by: Daniel Schwierzeck --- diff --git a/board/imgtec/malta/malta.c b/board/imgtec/malta/malta.c index 79562f79a8..cae4a21c3d 100644 --- a/board/imgtec/malta/malta.c +++ b/board/imgtec/malta/malta.c @@ -53,8 +53,9 @@ static void malta_lcd_puts(const char *str) static enum core_card malta_core_card(void) { u32 corid, rev; + const void *reg = (const void *)CKSEG1ADDR(MALTA_REVISION); - rev = __raw_readl(CKSEG1ADDR(MALTA_REVISION)); + rev = __raw_readl(reg); corid = (rev & MALTA_REVISION_CORID_MSK) >> MALTA_REVISION_CORID_SHF; switch (corid) {