diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-30 16:11:09 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-10-02 09:50:48 +0200 |
commit | b2755ea06d5d31500c2ff3cad5c100494b58724a (patch) | |
tree | 54b4ad540e85be8479c8fff582f65fb3ef6bd827 | |
parent | fd4d237fc9d088dc49416dede7fa8f363a2fb724 (diff) | |
download | barebox-b2755ea06d5d31500c2ff3cad5c100494b58724a.tar.gz barebox-b2755ea06d5d31500c2ff3cad5c100494b58724a.tar.xz |
mips: bcm47xx: Fix compiler warning
Fixes:
arch/mips/mach-bcm47xx/include/mach/debug_ll.h: In function 'PUTC_LL':
arch/mips/mach-bcm47xx/include/mach/debug_ll.h:33: warning: passing argument 1 of '__raw_readb' makes pointer from integer without a cast
arch/mips/mach-bcm47xx/include/mach/debug_ll.h:34: warning: passing argument 2 of '__raw_writeb' makes pointer from integer without a cast
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/mips/mach-bcm47xx/include/mach/debug_ll.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/mach-bcm47xx/include/mach/debug_ll.h b/arch/mips/mach-bcm47xx/include/mach/debug_ll.h index 0703bb0f23..9927b4d945 100644 --- a/arch/mips/mach-bcm47xx/include/mach/debug_ll.h +++ b/arch/mips/mach-bcm47xx/include/mach/debug_ll.h @@ -30,8 +30,10 @@ static __inline__ void PUTC_LL(char ch) { - while (!(__raw_readb(DEBUG_LL_UART_ADDR + lsr) & LSR_THRE)); - __raw_writeb(ch, DEBUG_LL_UART_ADDR + rbr); + void *base = (void *)DEBUG_LL_UART_ADDR; + + while (!(__raw_readb(base + lsr) & LSR_THRE)); + __raw_writeb(ch, base + rbr); } #endif /* __INCLUDE_ARCH_DEBUG_LL_H__ */ |