diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/kernel/dma.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/arm/kernel/dma.c b/arch/arm/kernel/dma.c index 3b325ef55a28..62c8966a8b77 100644 --- a/arch/arm/kernel/dma.c +++ b/arch/arm/kernel/dma.c | |||
@@ -22,8 +22,6 @@ | |||
22 | 22 | ||
23 | DEFINE_SPINLOCK(dma_spin_lock); | 23 | DEFINE_SPINLOCK(dma_spin_lock); |
24 | 24 | ||
25 | #if MAX_DMA_CHANNELS > 0 | ||
26 | |||
27 | static dma_t dma_chan[MAX_DMA_CHANNELS]; | 25 | static dma_t dma_chan[MAX_DMA_CHANNELS]; |
28 | 26 | ||
29 | /* | 27 | /* |
@@ -256,32 +254,6 @@ static int __init init_dma(void) | |||
256 | 254 | ||
257 | core_initcall(init_dma); | 255 | core_initcall(init_dma); |
258 | 256 | ||
259 | #else | ||
260 | |||
261 | int request_dma(dmach_t channel, const char *device_id) | ||
262 | { | ||
263 | return -EINVAL; | ||
264 | } | ||
265 | |||
266 | int get_dma_residue(dmach_t channel) | ||
267 | { | ||
268 | return 0; | ||
269 | } | ||
270 | |||
271 | #define GLOBAL_ALIAS(_a,_b) asm (".set " #_a "," #_b "; .globl " #_a) | ||
272 | GLOBAL_ALIAS(disable_dma, get_dma_residue); | ||
273 | GLOBAL_ALIAS(enable_dma, get_dma_residue); | ||
274 | GLOBAL_ALIAS(free_dma, get_dma_residue); | ||
275 | GLOBAL_ALIAS(get_dma_list, get_dma_residue); | ||
276 | GLOBAL_ALIAS(set_dma_mode, get_dma_residue); | ||
277 | GLOBAL_ALIAS(set_dma_page, get_dma_residue); | ||
278 | GLOBAL_ALIAS(set_dma_count, get_dma_residue); | ||
279 | GLOBAL_ALIAS(__set_dma_addr, get_dma_residue); | ||
280 | GLOBAL_ALIAS(set_dma_sg, get_dma_residue); | ||
281 | GLOBAL_ALIAS(set_dma_speed, get_dma_residue); | ||
282 | |||
283 | #endif | ||
284 | |||
285 | EXPORT_SYMBOL(request_dma); | 257 | EXPORT_SYMBOL(request_dma); |
286 | EXPORT_SYMBOL(free_dma); | 258 | EXPORT_SYMBOL(free_dma); |
287 | EXPORT_SYMBOL(enable_dma); | 259 | EXPORT_SYMBOL(enable_dma); |