From 096538efb1f9b26ab18ee76114b92f6629ff13d5 Mon Sep 17 00:00:00 2001 From: Eric Sun Date: Fri, 6 Jul 2012 17:40:34 +0800 Subject: [PATCH] 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 --- arch/arm/plat-mxc/include/mach/mx6.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) /* -- 2.39.5