diff options
Diffstat (limited to 'arch/arm/mach-ux500/cpu-db8500.c')
-rw-r--r-- | arch/arm/mach-ux500/cpu-db8500.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index db3c52d56ca4..38b7f9c4788b 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c | |||
@@ -138,10 +138,6 @@ static struct platform_device *platform_devs[] __initdata = { | |||
138 | &db8500_prcmu_device, | 138 | &db8500_prcmu_device, |
139 | }; | 139 | }; |
140 | 140 | ||
141 | static struct platform_device *of_platform_devs[] __initdata = { | ||
142 | &u8500_dma40_device, | ||
143 | }; | ||
144 | |||
145 | static resource_size_t __initdata db8500_gpio_base[] = { | 141 | static resource_size_t __initdata db8500_gpio_base[] = { |
146 | U8500_GPIOBANK0_BASE, | 142 | U8500_GPIOBANK0_BASE, |
147 | U8500_GPIOBANK1_BASE, | 143 | U8500_GPIOBANK1_BASE, |
@@ -235,7 +231,6 @@ struct device * __init u8500_init_devices(struct ab8500_platform_data *ab8500) | |||
235 | struct device * __init u8500_of_init_devices(void) | 231 | struct device * __init u8500_of_init_devices(void) |
236 | { | 232 | { |
237 | struct device *parent; | 233 | struct device *parent; |
238 | int i; | ||
239 | 234 | ||
240 | parent = db8500_soc_device_init(); | 235 | parent = db8500_soc_device_init(); |
241 | 236 | ||
@@ -244,8 +239,7 @@ struct device * __init u8500_of_init_devices(void) | |||
244 | platform_device_register_data(parent, | 239 | platform_device_register_data(parent, |
245 | "cpufreq-u8500", -1, NULL, 0); | 240 | "cpufreq-u8500", -1, NULL, 0); |
246 | 241 | ||
247 | for (i = 0; i < ARRAY_SIZE(of_platform_devs); i++) | 242 | u8500_dma40_device.dev.parent = parent; |
248 | of_platform_devs[i]->dev.parent = parent; | ||
249 | 243 | ||
250 | /* | 244 | /* |
251 | * Devices to be DT:ed: | 245 | * Devices to be DT:ed: |
@@ -253,7 +247,7 @@ struct device * __init u8500_of_init_devices(void) | |||
253 | * db8500_pmu_device = done | 247 | * db8500_pmu_device = done |
254 | * db8500_prcmu_device = done | 248 | * db8500_prcmu_device = done |
255 | */ | 249 | */ |
256 | platform_add_devices(of_platform_devs, ARRAY_SIZE(of_platform_devs)); | 250 | platform_device_register(&u8500_dma40_device); |
257 | 251 | ||
258 | return parent; | 252 | return parent; |
259 | } | 253 | } |