* [PATCH] ARM: OMAP: Readd Amstrad Delta LEDs platform setup.
@ 2006-08-08 21:28 Jonathan McDowell
2006-08-11 9:52 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan McDowell @ 2006-08-08 21:28 UTC (permalink / raw)
To: linux-omap-open-source
The platform init details for the Amstrad Delta LEDs appear to have
been lost in the most recent sync with mainline. This readds it in
exactly the same manner as it existed previously.
Signed-Off-By: Jonathan McDowell <noodles@earth.li>
-----
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c
index 664c3e2..8437d06 100644
--- a/arch/arm/mach-omap1/board-ams-delta.c
+++ b/arch/arm/mach-omap1/board-ams-delta.c
@@ -91,6 +91,15 @@ static struct omap_board_config_kernel a
{ OMAP_TAG_USB, &ams_delta_usb_config },
};
+static struct platform_device ams_delta_led_device = {
+ .name = "ams-delta-led",
+ .id = -1
+};
+
+static struct platform_device *ams_delta_devices[] __initdata = {
+ &ams_delta_led_device,
+};
+
static void __init ams_delta_init(void)
{
iotable_init(ams_delta_io_desc, ARRAY_SIZE(ams_delta_io_desc));
@@ -101,6 +110,8 @@ static void __init ams_delta_init(void)
/* Clear latch2 (NAND, LCD, modem enable) */
ams_delta_latch2_write(~0, 0);
+
+ platform_add_devices(ams_delta_devices, ARRAY_SIZE(ams_delta_devices));
}
static void __init ams_delta_map_io(void)
-----
J.
--
noodles is consumed in yangon every day
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: OMAP: Readd Amstrad Delta LEDs platform setup.
2006-08-08 21:28 [PATCH] ARM: OMAP: Readd Amstrad Delta LEDs platform setup Jonathan McDowell
@ 2006-08-11 9:52 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2006-08-11 9:52 UTC (permalink / raw)
To: linux-omap-open-source
* Jonathan McDowell <noodles@earth.li> [060809 00:29]:
> The platform init details for the Amstrad Delta LEDs appear to have
> been lost in the most recent sync with mainline. This readds it in
> exactly the same manner as it existed previously.
Sorry, I still don't know how we keep losing some changes in merges..
Pushing today.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-11 9:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-08 21:28 [PATCH] ARM: OMAP: Readd Amstrad Delta LEDs platform setup Jonathan McDowell
2006-08-11 9:52 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox