aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-clps711x/p720t.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2012-11-17 08:57:09 -0500
committerOlof Johansson <olof@lixom.net>2012-11-21 01:21:48 -0500
commitdd850f1223fe039ed649b34b1d2872b1f4221de9 (patch)
tree8fafc01a8b86e508f3430a0cbf77f15bb7d6e4da /arch/arm/mach-clps711x/p720t.c
parentb3a076dd0270507e1976b141a2aa5c53b9b553d1 (diff)
ARM: clps711x: Transform clps711x-framebuffer to platform driver and use it
clps711x-framebuffer driver needs to be updated and this is a first step to make driver better. With this patch we are convert clps711x-framebuffer to platform device and load this driver from board code. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-clps711x/p720t.c')
-rw-r--r--arch/arm/mach-clps711x/p720t.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-clps711x/p720t.c b/arch/arm/mach-clps711x/p720t.c
index 8fe33b3a204c..d95cb8ace251 100644
--- a/arch/arm/mach-clps711x/p720t.c
+++ b/arch/arm/mach-clps711x/p720t.c
@@ -119,6 +119,11 @@ static struct gpio_led_platform_data p720t_gpio_led_pdata __initdata = {
119 .num_leds = ARRAY_SIZE(p720t_gpio_leds), 119 .num_leds = ARRAY_SIZE(p720t_gpio_leds),
120}; 120};
121 121
122static void __init p720t_init(void)
123{
124 platform_device_register_simple("video-clps711x", 0, NULL, 0);
125}
126
122static void __init p720t_init_late(void) 127static void __init p720t_init_late(void)
123{ 128{
124 platform_device_register_data(&platform_bus, "leds-gpio", 0, 129 platform_device_register_data(&platform_bus, "leds-gpio", 0,
@@ -134,6 +139,7 @@ MACHINE_START(P720T, "ARM-Prospector720T")
134 .init_early = p720t_init_early, 139 .init_early = p720t_init_early,
135 .init_irq = clps711x_init_irq, 140 .init_irq = clps711x_init_irq,
136 .timer = &clps711x_timer, 141 .timer = &clps711x_timer,
142 .init_machine = p720t_init,
137 .init_late = p720t_init_late, 143 .init_late = p720t_init_late,
138 .restart = clps711x_restart, 144 .restart = clps711x_restart,
139MACHINE_END 145MACHINE_END