From: Eric Sun Date: Fri, 6 Jul 2012 09:40:34 +0000 (+0800) Subject: ENGR00216001 MX6 Kernel : Fix a typo when defining "IO_ADDRESS" macro X-Git-Tag: v3.0.35-fsl~785 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=096538efb1f9b26ab18ee76114b92f6629ff13d5;p=karo-tx-linux.git ENGR00216001 MX6 Kernel : Fix a typo when defining "IO_ADDRESS" macro 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 Signed-off-by: Garg Nitin --- diff --git a/arch/arm/plat-mxc/include/mach/mx6.h b/arch/arm/plat-mxc/include/mach/mx6.h index 95a211c02684..76458a0264db 100644 --- a/arch/arm/plat-mxc/include/mach/mx6.h +++ b/arch/arm/plat-mxc/include/mach/mx6.h @@ -308,7 +308,7 @@ (((((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) /*