]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 4718/1: Fix redefinition warnings in PXA uncompressor code
authorPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 21 Dec 2007 08:31:25 +0000 (09:31 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 15:07:52 +0000 (15:07 +0000)
FFUART and friends are already defined as __REG(x) in pxa-regs.h.
Instead of redefining them here, we can just provide the __REG macro.
Including asm/arch/hardware.h is not an option because this physical
addresses are needed here.
This is a fix for the compiler warnings generated by 4663/1.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-pxa/uncompress.h

index 3faad53a684819b07db00522b2dd63c148fe6466..dadf4c20b6222409c2912f4121230f6e3c76fd35 100644 (file)
 #include <linux/serial_reg.h>
 #include <asm/arch/pxa-regs.h>
 
-#define FFUART         ((volatile unsigned long *)0x40100000)
-#define BTUART         ((volatile unsigned long *)0x40200000)
-#define STUART         ((volatile unsigned long *)0x40700000)
-#define HWUART         ((volatile unsigned long *)0x41600000)
+#define __REG(x)       ((volatile unsigned long *)x)
 
 #define UART           FFUART