mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[ARM] fix bogus cast in IXP2000 I/O macro
Physical addresses are not valid pointers of any sort and should not be cast to such. Signed-off-by: Deepak Saxena <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
1 parent
f741a1aab5
commit
7012f9084e
1 file changed
+1
-1
@@ -22,7 +22,7 @@
|
||||
#define IXDP2X01_CPLD_REGION_SIZE 0x00100000
|
||||
|
||||
#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) (IXDP2X01_PHYS_CPLD_BASE | reg)
|
||||
|
||||
#define IXDP2X01_UART1_VIRT_BASE IXDP2X01_CPLD_VIRT_REG(0x40)
|
||||
#define IXDP2X01_UART1_PHYS_BASE IXDP2X01_CPLD_PHYS_REG(0x40)
|
||||
|
||||
Reference in new issue
Block a user