]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/asm-arm/arch-pxa/hardware.h
* Patch by Andre Schwarz, 24 Nov 2003:
[people/ms/u-boot.git] / include / asm-arm / arch-pxa / hardware.h
index d40f05ed4db59588890e808b80dccf9d87073b67..a76a0290a136e2da01a0f3e0cdbb4a18b07a6f9b 100644 (file)
@@ -84,10 +84,6 @@ typedef struct { volatile u32 offset[4096]; } __regbase;
 # define __REG(x)      io_p2v(x)
 # define __PREG(x)     io_v2p(x)
 
-#endif
-#endif /* UBOOT_REG_FIX */
-
-#ifdef UBOOT_REG_FIX
 # undef        io_p2v
 # undef __REG
 # ifndef __ASSEMBLY__
@@ -96,6 +92,7 @@ typedef struct { volatile u32 offset[4096]; } __regbase;
 #  define __REG2(x,y)  (*(volatile u32 *)((u32)&__REG(x) + (y)))
 # else
 #  define __REG(x) (x)
+# endif
 #endif /* UBOOT_REG_FIX */
 
 #include "pxa-regs.h"