diff options
author | Lee Jones <lee.jones@linaro.org> | 2012-05-29 21:55:38 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-05-31 20:03:42 -0400 |
commit | 11a0b5f09c941ede301ed3eee59fd69c2b4850c2 (patch) | |
tree | 25635f2690b47776f114819a0aa434f05adf6b4e /arch | |
parent | 855f80cd1683179b251b01d232b3ae228c614766 (diff) |
ARM: ux500: New DT:ed snowball_platform_devs for one-by-one device enablement
During Device Tree enablement it is necessary to remove snowball_<device>*
platform_data segments one at at time, as and when particular devices are
DT enabled. This patch provides a temporary solution. Once this new struct
is empty it will be removed again.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index fba8adea421e..d1bd2bac22f0 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -676,6 +676,13 @@ static struct platform_device *snowball_platform_devs[] __initdata = { | |||
676 | &ab8500_device, | 676 | &ab8500_device, |
677 | }; | 677 | }; |
678 | 678 | ||
679 | static struct platform_device *snowball_of_platform_devs[] __initdata = { | ||
680 | &snowball_led_dev, | ||
681 | &snowball_key_dev, | ||
682 | &snowball_sbnet_dev, | ||
683 | &ab8500_device, | ||
684 | }; | ||
685 | |||
679 | static void __init mop500_init_machine(void) | 686 | static void __init mop500_init_machine(void) |
680 | { | 687 | { |
681 | struct device *parent = NULL; | 688 | struct device *parent = NULL; |
@@ -876,8 +883,15 @@ static void __init u8500_init_machine(void) | |||
876 | ARRAY_SIZE(mop500_i2c2_devices)); | 883 | ARRAY_SIZE(mop500_i2c2_devices)); |
877 | 884 | ||
878 | } else if (of_machine_is_compatible("calaosystems,snowball-a9500")) { | 885 | } else if (of_machine_is_compatible("calaosystems,snowball-a9500")) { |
879 | platform_add_devices(snowball_platform_devs, | 886 | /* |
880 | ARRAY_SIZE(snowball_platform_devs)); | 887 | * Devices to be DT:ed: |
888 | * snowball_led_dev = todo | ||
889 | * snowball_key_dev = todo | ||
890 | * snowball_sbnet_dev = todo | ||
891 | * ab8500_device = todo | ||
892 | */ | ||
893 | platform_add_devices(snowball_of_platform_devs, | ||
894 | ARRAY_SIZE(snowball_of_platform_devs)); | ||
881 | 895 | ||
882 | snowball_sdi_init(parent); | 896 | snowball_sdi_init(parent); |
883 | } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) { | 897 | } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) { |