diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-10-07 15:57:31 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-10-07 15:57:31 -0400 |
commit | 526b264163068f77c5f2409031f5e25caf3900a9 (patch) | |
tree | 196e7581f1546e48ba392ff099f369e5c622636b /arch/arm/mach-mxs/mach-mx28evk.c | |
parent | 4c4cbce68f57555cddb9d77da333bf50875148ce (diff) | |
parent | 05d900c9d8ce536c6792efb323c82b1c97b54bf9 (diff) |
Merge branch 'imx/cleanup' into imx/devel
This helps resolve the conflicts between the imx cleanups and the
new code that has gone into the imx tree.
Conflict resolution was originally done by Sascha Hauer.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-mxs/mach-mx28evk.c')
-rw-r--r-- | arch/arm/mach-mxs/mach-mx28evk.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mach-mxs/mach-mx28evk.c b/arch/arm/mach-mxs/mach-mx28evk.c index 4a3cca3725f2..e7bff1e2cd2b 100644 --- a/arch/arm/mach-mxs/mach-mx28evk.c +++ b/arch/arm/mach-mxs/mach-mx28evk.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
18 | #include <linux/leds.h> | 18 | #include <linux/leds.h> |
19 | #include <linux/irq.h> | ||
20 | #include <linux/clk.h> | 19 | #include <linux/clk.h> |
21 | #include <linux/i2c.h> | 20 | #include <linux/i2c.h> |
22 | #include <linux/regulator/machine.h> | 21 | #include <linux/regulator/machine.h> |
@@ -417,6 +416,11 @@ static void __init mx28evk_add_regulators(void) | |||
417 | static void __init mx28evk_add_regulators(void) {} | 416 | static void __init mx28evk_add_regulators(void) {} |
418 | #endif | 417 | #endif |
419 | 418 | ||
419 | static struct gpio mx28evk_lcd_gpios[] = { | ||
420 | { MX28EVK_LCD_ENABLE, GPIOF_OUT_INIT_HIGH, "lcd-enable" }, | ||
421 | { MX28EVK_BL_ENABLE, GPIOF_OUT_INIT_HIGH, "bl-enable" }, | ||
422 | }; | ||
423 | |||
420 | static void __init mx28evk_init(void) | 424 | static void __init mx28evk_init(void) |
421 | { | 425 | { |
422 | int ret; | 426 | int ret; |
@@ -443,19 +447,12 @@ static void __init mx28evk_init(void) | |||
443 | mx28_add_flexcan(1, &mx28evk_flexcan_pdata[1]); | 447 | mx28_add_flexcan(1, &mx28evk_flexcan_pdata[1]); |
444 | } | 448 | } |
445 | 449 | ||
446 | ret = gpio_request_one(MX28EVK_LCD_ENABLE, GPIOF_DIR_OUT, "lcd-enable"); | 450 | ret = gpio_request_array(mx28evk_lcd_gpios, |
447 | if (ret) | 451 | ARRAY_SIZE(mx28evk_lcd_gpios)); |
448 | pr_warn("failed to request gpio lcd-enable: %d\n", ret); | ||
449 | else | ||
450 | gpio_set_value(MX28EVK_LCD_ENABLE, 1); | ||
451 | |||
452 | ret = gpio_request_one(MX28EVK_BL_ENABLE, GPIOF_DIR_OUT, "bl-enable"); | ||
453 | if (ret) | 452 | if (ret) |
454 | pr_warn("failed to request gpio bl-enable: %d\n", ret); | 453 | pr_warn("failed to request gpio pins for lcd: %d\n", ret); |
455 | else | 454 | else |
456 | gpio_set_value(MX28EVK_BL_ENABLE, 1); | 455 | mx28_add_mxsfb(&mx28evk_mxsfb_pdata); |
457 | |||
458 | mx28_add_mxsfb(&mx28evk_mxsfb_pdata); | ||
459 | 456 | ||
460 | mx28_add_saif(0); | 457 | mx28_add_saif(0); |
461 | mx28_add_saif(1); | 458 | mx28_add_saif(1); |
@@ -480,6 +477,9 @@ static void __init mx28evk_init(void) | |||
480 | "mmc1-slot-power"); | 477 | "mmc1-slot-power"); |
481 | if (ret) | 478 | if (ret) |
482 | pr_warn("failed to request gpio mmc1-slot-power: %d\n", ret); | 479 | pr_warn("failed to request gpio mmc1-slot-power: %d\n", ret); |
480 | else | ||
481 | mx28_add_mxs_mmc(1, &mx28evk_mmc_pdata[1]); | ||
482 | |||
483 | mx28_add_mxs_mmc(1, &mx28evk_mmc_pdata[1]); | 483 | mx28_add_mxs_mmc(1, &mx28evk_mmc_pdata[1]); |
484 | mx28_add_rtc_stmp3xxx(); | 484 | mx28_add_rtc_stmp3xxx(); |
485 | 485 | ||