diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-07-06 12:37:41 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-07-08 14:38:12 -0400 |
commit | e7fc6ae7446710a487510d212137a43289bbe90e (patch) | |
tree | 6f040b47a383ed19afe48521f449dc0081fa47de /arch/arm/plat-mxc/devices | |
parent | fb1492186276ba52d99b58121b8a9a87f20cc9f3 (diff) |
gpio/mxc: get rid of the uses of cpu_is_mx()
The patch removes all the uses of cpu_is_mx(). Instead, it utilizes
platform_device_id to distinguish the different gpio types, IMX1_GPIO
on i.mx1, IMX21_GPIO on i.mx21 and i.mx27, IMX31_GPIO on all other
i.mx SoCs.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/arm/plat-mxc/devices')
-rw-r--r-- | arch/arm/plat-mxc/devices/platform-gpio-mxc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-gpio-mxc.c b/arch/arm/plat-mxc/devices/platform-gpio-mxc.c index cf1b7fdfa20d..a7919a241032 100644 --- a/arch/arm/plat-mxc/devices/platform-gpio-mxc.c +++ b/arch/arm/plat-mxc/devices/platform-gpio-mxc.c | |||
@@ -8,7 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | #include <mach/devices-common.h> | 9 | #include <mach/devices-common.h> |
10 | 10 | ||
11 | struct platform_device *__init mxc_register_gpio(int id, | 11 | struct platform_device *__init mxc_register_gpio(char *name, int id, |
12 | resource_size_t iobase, resource_size_t iosize, int irq, int irq_high) | 12 | resource_size_t iobase, resource_size_t iosize, int irq, int irq_high) |
13 | { | 13 | { |
14 | struct resource res[] = { | 14 | struct resource res[] = { |
@@ -28,5 +28,5 @@ struct platform_device *__init mxc_register_gpio(int id, | |||
28 | }; | 28 | }; |
29 | 29 | ||
30 | return platform_device_register_resndata(&mxc_aips_bus, | 30 | return platform_device_register_resndata(&mxc_aips_bus, |
31 | "gpio-mxc", id, res, ARRAY_SIZE(res), NULL, 0); | 31 | name, id, res, ARRAY_SIZE(res), NULL, 0); |
32 | } | 32 | } |