summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-pxa
diff options
context:
space:
mode:
authorEric Miao <eric.y.miao@gmail.com>2009-11-13 09:44:14 +0100
committerEric Miao <eric.y.miao@gmail.com>2009-11-13 10:30:21 +0100
commit9da4ea69f28cf2bd20be86eda34afbc03c2180c7 (patch)
treea8af7b36aaa5e2536310f05688189fe0faa240f2 /arch/arm/plat-pxa
parent[ARM] pxa/colibri: fix AC97 ifdefs and add missing include (diff)
downloadlinux-9da4ea69f28cf2bd20be86eda34afbc03c2180c7.tar.xz
linux-9da4ea69f28cf2bd20be86eda34afbc03c2180c7.zip
[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 <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/plat-pxa')
-rw-r--r--arch/arm/plat-pxa/include/plat/mfp.h2
1 files changed, 1 insertions, 1 deletions
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 {