summaryrefslogtreecommitdiff
path: root/arch/arm/mach-pxa/pxa930.c
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2013-04-07 12:44:33 +0400
committerHaojian Zhuang <haojian.zhuang@linaro.org>2013-04-11 05:59:23 +0400
commit2cab0292285ce3180224c130d2fb1104aee44ff1 (patch)
treea3f8bea618053618e7e1461b743ac7cb6e444454 /arch/arm/mach-pxa/pxa930.c
parent31880c37c11e28cb81c70757e38392b42e695dc6 (diff)
downloadlinux-2cab0292285ce3180224c130d2fb1104aee44ff1.tar.xz
ARM: pxa: remove cpu_is_xxx in gpio driver
Avoid to use cpu_is_xxx() in pxa gpio driver. Use platform_device_id to identify the difference. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-pxa/pxa930.c')
-rw-r--r--arch/arm/mach-pxa/pxa930.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/pxa930.c b/arch/arm/mach-pxa/pxa930.c
index 8aeacf908784..4693a78948aa 100644
--- a/arch/arm/mach-pxa/pxa930.c
+++ b/arch/arm/mach-pxa/pxa930.c
@@ -18,6 +18,8 @@
#include <mach/pxa930.h>
+#include "devices.h"
+
static struct mfp_addr_map pxa930_mfp_addr_map[] __initdata = {
MFP_ADDR(GPIO0, 0x02e0),
@@ -192,9 +194,12 @@ static struct mfp_addr_map pxa935_mfp_addr_map[] __initdata = {
static int __init pxa930_init(void)
{
+ int ret = 0;
+
if (cpu_is_pxa93x()) {
mfp_init_base(io_p2v(MFPR_BASE));
mfp_init_addr(pxa930_mfp_addr_map);
+ ret = platform_device_register(&pxa93x_device_gpio);
}
if (cpu_is_pxa935())