summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-clps711x/board-p720t.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-04-26 17:47:29 +0200
committerOlof Johansson <olof@lixom.net>2013-06-12 00:44:57 +0200
commite328b88094b712e4010a805499ceff774e2795b7 (patch)
treea8388f1974daa4c65b40ff22909d2e157163aa83 /arch/arm/mach-clps711x/board-p720t.c
parentGPIO: clps711x: Add DT support (diff)
downloadlinux-e328b88094b712e4010a805499ceff774e2795b7.tar.xz
linux-e328b88094b712e4010a805499ceff774e2795b7.zip
ARM: clps711x: Re-add GPIO support
arch_initcall was been removed from GPIO driver, so this patch re-add support for GPIO into boards as platform_device. Since some drivers (spi, nand, etc.) is not support deferred probe, separate machine init calls is used in board code to make proper loading sequence. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-clps711x/board-p720t.c')
-rw-r--r--arch/arm/mach-clps711x/board-p720t.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-clps711x/board-p720t.c b/arch/arm/mach-clps711x/board-p720t.c
index 8d3ee6771135..48d073716eb8 100644
--- a/arch/arm/mach-clps711x/board-p720t.c
+++ b/arch/arm/mach-clps711x/board-p720t.c
@@ -43,6 +43,7 @@
#include <video/platform_lcd.h>
#include "common.h"
+#include "devices.h"
#define P720T_USERLED CLPS711X_GPIO(3, 0)
#define P720T_NAND_CLE CLPS711X_GPIO(4, 0)
@@ -199,6 +200,11 @@ static struct gpio_led_platform_data p720t_gpio_led_pdata __initdata = {
static void __init p720t_init(void)
{
+ clps711x_devices_init();
+}
+
+static void __init p720t_init_late(void)
+{
platform_device_register(&p720t_nand_pdev);
platform_device_register_data(&platform_bus, "platform-lcd", 0,
&p720t_lcd_power_pdata,
@@ -207,10 +213,6 @@ static void __init p720t_init(void)
&p720t_lcd_backlight_pdata,
sizeof(p720t_lcd_backlight_pdata));
platform_device_register_simple("video-clps711x", 0, NULL, 0);
-}
-
-static void __init p720t_init_late(void)
-{
platform_device_register_data(&platform_bus, "leds-gpio", 0,
&p720t_gpio_led_pdata,
sizeof(p720t_gpio_led_pdata));