Commit 5063dd9d authored by Ben Dooks's avatar Ben Dooks Committed by Russell King

[ARM PATCH] 2482/1: IXP2000 - header cleanup

Patch from Ben Dooks

fix the following problems:
lib/iomap.c:140: warning: passing arg 1 of `__raw_readsb' makes pointer from integer without a cast
lib/iomap.c:156: warning: passing arg 1 of `__raw_writesb' makes pointer from integer without a cast
include/asm-arm/arch-ixp2000/io.h modified to have (void __iomem *) in front of the alignment code
include/asm/arch/system.h:22: warning: `cli' is deprecated (declared at include/linux/interrupt.h:65)
cli() replace by local_irq_disable
arch/arm/mach-ixp2000/ixdp2x01.c:116: warning: passing arg 1 of `ixp2000_reg_write' from incompatible pointer type
arch/arm/mach-ixp2000/ixdp2x01.c:117: warning: passing arg 1 of `ixp2000_reg_write' from incompatible pointer type
fixed definition of the cpld registers IXDP2X01_CPLD_VIRT_REG()

Signed-off-by: Ben DooksLooks okay.  Test-booted on ENP-2611, no problem.
Signed-off-by: default avatarLennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King
parent 09674ad0
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
* IXP2000 does not do proper byte-lane conversion for PCI addresses, * IXP2000 does not do proper byte-lane conversion for PCI addresses,
* so we need to override standard functions. * so we need to override standard functions.
*/ */
#define alignb(addr) (((unsigned long)addr & ~3) + (3 - ((unsigned long)addr & 3))) #define alignb(addr) (void __iomem *)(((unsigned long)addr & ~3) + (3 - ((unsigned long)addr & 3)))
#define alignw(addr) (((unsigned long)addr & ~2) + (2 - ((unsigned long)addr & 2))) #define alignw(addr) (void __iomem *)(((unsigned long)addr & ~2) + (2 - ((unsigned long)addr & 2)))
#define outb(v,p) __raw_writeb(v,alignb(___io(p))) #define outb(v,p) __raw_writeb(v,alignb(___io(p)))
#define outw(v,p) __raw_writew((v),alignw(___io(p))) #define outw(v,p) __raw_writew((v),alignw(___io(p)))
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#define IXDP2X01_VIRT_CPLD_BASE 0xfefdd000 #define IXDP2X01_VIRT_CPLD_BASE 0xfefdd000
#define IXDP2X01_CPLD_REGION_SIZE 0x1000 #define IXDP2X01_CPLD_REGION_SIZE 0x1000
#define IXDP2X01_CPLD_VIRT_REG(reg) (volatile u32*)(IXDP2X01_VIRT_CPLD_BASE | reg) #define IXDP2X01_CPLD_VIRT_REG(reg) (volatile unsigned long*)(IXDP2X01_VIRT_CPLD_BASE | reg)
#define IXDP2X01_CPLD_PHYS_REG(reg) (volatile u32*)(IXDP2X01_PHYS_CPLD_BASE | reg) #define IXDP2X01_CPLD_PHYS_REG(reg) (volatile u32*)(IXDP2X01_PHYS_CPLD_BASE | reg)
#define IXDP2X01_UART1_VIRT_BASE IXDP2X01_CPLD_VIRT_REG(0x40) #define IXDP2X01_UART1_VIRT_BASE IXDP2X01_CPLD_VIRT_REG(0x40)
......
...@@ -19,7 +19,7 @@ static inline void arch_idle(void) ...@@ -19,7 +19,7 @@ static inline void arch_idle(void)
static inline void arch_reset(char mode) static inline void arch_reset(char mode)
{ {
cli(); local_irq_disable();
/* /*
* Reset flash banking register so that we are pointing at * Reset flash banking register so that we are pointing at
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment