Commit 38cd8c5d authored by Lee Jones's avatar Lee Jones

ARM: ux500: Clean-up temporary Device Tree enablement helpers

Here we remove some of the extra overhead we introduced to make
DT:ing the Snowball platform easier.
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent d582cb0b
...@@ -138,10 +138,6 @@ static struct platform_device *platform_devs[] __initdata = { ...@@ -138,10 +138,6 @@ static struct platform_device *platform_devs[] __initdata = {
&db8500_prcmu_device, &db8500_prcmu_device,
}; };
static struct platform_device *of_platform_devs[] __initdata = {
&u8500_dma40_device,
};
static resource_size_t __initdata db8500_gpio_base[] = { static resource_size_t __initdata db8500_gpio_base[] = {
U8500_GPIOBANK0_BASE, U8500_GPIOBANK0_BASE,
U8500_GPIOBANK1_BASE, U8500_GPIOBANK1_BASE,
...@@ -235,7 +231,6 @@ struct device * __init u8500_init_devices(struct ab8500_platform_data *ab8500) ...@@ -235,7 +231,6 @@ struct device * __init u8500_init_devices(struct ab8500_platform_data *ab8500)
struct device * __init u8500_of_init_devices(void) struct device * __init u8500_of_init_devices(void)
{ {
struct device *parent; struct device *parent;
int i;
parent = db8500_soc_device_init(); parent = db8500_soc_device_init();
...@@ -244,8 +239,7 @@ struct device * __init u8500_of_init_devices(void) ...@@ -244,8 +239,7 @@ struct device * __init u8500_of_init_devices(void)
platform_device_register_data(parent, platform_device_register_data(parent,
"cpufreq-u8500", -1, NULL, 0); "cpufreq-u8500", -1, NULL, 0);
for (i = 0; i < ARRAY_SIZE(of_platform_devs); i++) u8500_dma40_device.dev.parent = parent;
of_platform_devs[i]->dev.parent = parent;
/* /*
* Devices to be DT:ed: * Devices to be DT:ed:
...@@ -253,7 +247,7 @@ struct device * __init u8500_of_init_devices(void) ...@@ -253,7 +247,7 @@ struct device * __init u8500_of_init_devices(void)
* db8500_pmu_device = done * db8500_pmu_device = done
* db8500_prcmu_device = done * db8500_prcmu_device = done
*/ */
platform_add_devices(of_platform_devs, ARRAY_SIZE(of_platform_devs)); platform_device_register(&u8500_dma40_device);
return parent; return parent;
} }
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