]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00216001 MX6 Kernel : Fix a typo when defining "IO_ADDRESS" macro
authorEric Sun <jian.sun@freescale.com>
Fri, 6 Jul 2012 09:40:34 +0000 (17:40 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:58 +0000 (08:34 +0200)
When defining macro "IO_ADDRESS", the address is checked against PERIPH
address.
     ((x) <= (unsigned long)(ARM_PERIPHBASE + ARM_PERIPHBASE)) ...
The second "ARM_PERIPHBASE" is obviously a typo, should changed to
ARM_PERIPHBASE_SIZE

Signed-off-by: Eric Sun <jian.sun@freescale.com>
Signed-off-by: Garg Nitin <b37173@freescale.com>
arch/arm/plat-mxc/include/mach/mx6.h

index 95a211c0268482bd4e4cfc11c699f831d202b353..76458a0264dbeb412962939decd9f11efea793b0 100644 (file)
        (((((x) >= (unsigned long)AIPS1_ARB_BASE_ADDR) && \
          ((x) <= (unsigned long)AIPS2_ARB_END_ADDR)) || \
          ((x) >= (unsigned long)ARM_PERIPHBASE && \
-         ((x) <= (unsigned long)(ARM_PERIPHBASE + ARM_PERIPHBASE)))) ? \
+         ((x) <= (unsigned long)(ARM_PERIPHBASE + ARM_PERIPHBASE_SIZE)))) ? \
           MX6_IO_ADDRESS(x) : (void __force __iomem *)0xDEADBEEF)
 
 /*