Skip to contentSkip to conversation

sh: Fix problem that get_dma_error_irq is compiled in SH3

PATCH New Nobuhiro Iwamatsu 1 participant 1 message Mar 13, 2009 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: Fix problem that get_dma_error_irq is compiled in SH3

get_dma_error_irq() used in dma-sh is function for exclusive use of SH4. SH3 doesn't have DMA Error interrupt.
This fixes it to compile it only in SH4.

---
 arch/sh/drivers/dma/dma-sh.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/sh/drivers/dma/dma-sh.c +2 -0
index ab7b18d..31c2930 100644
@@ -280,6 +280,7 @@ static struct dma_info sh_dmac_info = {
 	.flags		= DMAC_CHANNELS_TEI_CAPABLE,
 };
 
+#ifdef CONFIG_CPU_SH4
 static unsigned int get_dma_error_irq(int n)
 {
 #if defined(DMAC_IRQ_MULTI)
@@ -293,6 +294,7 @@ static unsigned int get_dma_error_irq(int n)
 #endif
 #endif
 }
+#endif
 
 static int __init sh_dmac_init(void)
 {
Signature · 1 line
1.6.2