diff options
Diffstat (limited to 'arch/arm/mach-davinci/devices-da8xx.c')
-rw-r--r-- | arch/arm/mach-davinci/devices-da8xx.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index 1d956bfa9cf0..52bc7b1c6ca3 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c | |||
@@ -255,18 +255,21 @@ static struct platform_device da850_edma_device = { | |||
255 | .resource = da850_edma_resources, | 255 | .resource = da850_edma_resources, |
256 | }; | 256 | }; |
257 | 257 | ||
258 | int __init da8xx_register_edma(void) | 258 | int __init da830_register_edma(struct edma_rsv_info *rsv) |
259 | { | 259 | { |
260 | struct platform_device *pdev; | 260 | da830_edma_cc0_info.rsv = rsv; |
261 | 261 | ||
262 | if (cpu_is_davinci_da830()) | 262 | return platform_device_register(&da830_edma_device); |
263 | pdev = &da830_edma_device; | 263 | } |
264 | else if (cpu_is_davinci_da850()) | ||
265 | pdev = &da850_edma_device; | ||
266 | else | ||
267 | return -ENODEV; | ||
268 | 264 | ||
269 | return platform_device_register(pdev); | 265 | int __init da850_register_edma(struct edma_rsv_info *rsv[2]) |
266 | { | ||
267 | if (rsv) { | ||
268 | da850_edma_cc_info[0].rsv = rsv[0]; | ||
269 | da850_edma_cc_info[1].rsv = rsv[1]; | ||
270 | } | ||
271 | |||
272 | return platform_device_register(&da850_edma_device); | ||
270 | } | 273 | } |
271 | 274 | ||
272 | static struct resource da8xx_i2c_resources0[] = { | 275 | static struct resource da8xx_i2c_resources0[] = { |