Commit 70828f2c authored by Jonathan McDowell's avatar Jonathan McDowell Committed by Tony Lindgren

[PATCH] ARM: OMAP: Readd Amstrad Delta LEDs platform setup

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: default avatarJonathan McDowell <noodles@earth.li>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 56475ed0
......@@ -91,6 +91,15 @@ static struct omap_board_config_kernel ams_delta_config[] = {
{ 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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment