From: Eric Miao Date: Fri, 13 Nov 2009 08:44:14 +0000 (+0800) Subject: [ARM] pxa: fix incorrect mfp_to_gpio() conversion X-Git-Tag: MMI-PSA29.97-13-9~25873^2^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9da4ea69f28cf2bd20be86eda34afbc03c2180c7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [ARM] pxa: fix incorrect mfp_to_gpio() conversion Since MFP_PIN_GPIO* now includes 128-255, mfp_to_gpio() is no longer valid for those additional pins, fix it. Signed-off-by: Eric Miao --- diff --git a/arch/arm/plat-pxa/include/plat/mfp.h b/arch/arm/plat-pxa/include/plat/mfp.h index 22086e696e8e..857a6839071c 100644 --- a/arch/arm/plat-pxa/include/plat/mfp.h +++ b/arch/arm/plat-pxa/include/plat/mfp.h @@ -16,7 +16,7 @@ #ifndef __ASM_PLAT_MFP_H #define __ASM_PLAT_MFP_H -#define mfp_to_gpio(m) ((m) % 128) +#define mfp_to_gpio(m) ((m) % 256) /* list of all the configurable MFP pins */ enum {