diff options
Diffstat (limited to 'arch/arm/mach-imx/devices.c')
-rw-r--r-- | arch/arm/mach-imx/devices.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/arch/arm/mach-imx/devices.c b/arch/arm/mach-imx/devices.c index a0aeb8a4adc1..e708bfd9aabc 100644 --- a/arch/arm/mach-imx/devices.c +++ b/arch/arm/mach-imx/devices.c | |||
@@ -454,26 +454,21 @@ DEFINE_IMX_SSI_DEVICE(1, 2, MX2x_SSI1_BASE_ADDR, MX2x_INT_SSI1); | |||
454 | 454 | ||
455 | #ifdef CONFIG_MACH_MX21 | 455 | #ifdef CONFIG_MACH_MX21 |
456 | DEFINE_MXC_GPIO_PORTS(MX21, imx21); | 456 | DEFINE_MXC_GPIO_PORTS(MX21, imx21); |
457 | |||
458 | int __init imx21_register_gpios(void) | ||
459 | { | ||
460 | return mxc_gpio_init(imx21_gpio_ports, ARRAY_SIZE(imx21_gpio_ports)); | ||
461 | } | ||
457 | #endif | 462 | #endif |
458 | 463 | ||
459 | #ifdef CONFIG_MACH_MX27 | 464 | #ifdef CONFIG_MACH_MX27 |
460 | DEFINE_MXC_GPIO_PORTS(MX27, imx27); | 465 | DEFINE_MXC_GPIO_PORTS(MX27, imx27); |
461 | #endif | ||
462 | 466 | ||
463 | int __init mxc_register_gpios(void) | 467 | int __init imx27_register_gpios(void) |
464 | { | 468 | { |
465 | #ifdef CONFIG_MACH_MX21 | 469 | return mxc_gpio_init(imx27_gpio_ports, ARRAY_SIZE(imx27_gpio_ports)); |
466 | if (cpu_is_mx21()) | ||
467 | return mxc_gpio_init(imx21_gpio_ports, ARRAY_SIZE(imx21_gpio_ports)); | ||
468 | else | ||
469 | #endif | ||
470 | #ifdef CONFIG_MACH_MX27 | ||
471 | if (cpu_is_mx27()) | ||
472 | return mxc_gpio_init(imx27_gpio_ports, ARRAY_SIZE(imx27_gpio_ports)); | ||
473 | else | ||
474 | #endif | ||
475 | return 0; | ||
476 | } | 470 | } |
471 | #endif | ||
477 | 472 | ||
478 | #ifdef CONFIG_MACH_MX21 | 473 | #ifdef CONFIG_MACH_MX21 |
479 | static struct resource mx21_usbhc_resources[] = { | 474 | static struct resource mx21_usbhc_resources[] = { |
@@ -500,4 +495,3 @@ struct platform_device mx21_usbhc_device = { | |||
500 | .resource = mx21_usbhc_resources, | 495 | .resource = mx21_usbhc_resources, |
501 | }; | 496 | }; |
502 | #endif | 497 | #endif |
503 | |||