]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Disable get_dma_error_irq for non-SH4 targets.
authorNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Fri, 13 Mar 2009 04:31:34 +0000 (04:31 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 16 Mar 2009 10:49:01 +0000 (19:49 +0900)
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>
arch/sh/drivers/dma/dma-sh.c

index ab7b18dcbaba1c49c23de8f5af6650ff347a9e1a..31c2930f2f540ee8bcc4735467aed6587488af1b 100644 (file)
@@ -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)
 {