diff options
author | Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> | 2009-03-13 00:31:34 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-03-16 06:49:01 -0400 |
commit | 02ebd32f52c10f90f810e85d0281e9e81dd6e741 (patch) | |
tree | 71085fae4632e3ae013cf3b82631a27a3f04b8c5 /arch | |
parent | a83c0b739f3ad1887704cfa9f1ee5ee208cf1532 (diff) |
sh: Disable get_dma_error_irq for non-SH4 targets.
dma-sh's get_dma_error_irq() is only used by SH4, as the SH3
doesn't have the DMA Error interrupt.
Disable it out for non-SH4 builds.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/drivers/dma/dma-sh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/drivers/dma/dma-sh.c b/arch/sh/drivers/dma/dma-sh.c index ab7b18dcbaba..31c2930f2f54 100644 --- a/arch/sh/drivers/dma/dma-sh.c +++ b/arch/sh/drivers/dma/dma-sh.c | |||
@@ -280,6 +280,7 @@ static struct dma_info sh_dmac_info = { | |||
280 | .flags = DMAC_CHANNELS_TEI_CAPABLE, | 280 | .flags = DMAC_CHANNELS_TEI_CAPABLE, |
281 | }; | 281 | }; |
282 | 282 | ||
283 | #ifdef CONFIG_CPU_SH4 | ||
283 | static unsigned int get_dma_error_irq(int n) | 284 | static unsigned int get_dma_error_irq(int n) |
284 | { | 285 | { |
285 | #if defined(DMAC_IRQ_MULTI) | 286 | #if defined(DMAC_IRQ_MULTI) |
@@ -293,6 +294,7 @@ static unsigned int get_dma_error_irq(int n) | |||
293 | #endif | 294 | #endif |
294 | #endif | 295 | #endif |
295 | } | 296 | } |
297 | #endif | ||
296 | 298 | ||
297 | static int __init sh_dmac_init(void) | 299 | static int __init sh_dmac_init(void) |
298 | { | 300 | { |