sh: Disable get_dma_error_irq for non-SH4 targets.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:22 pm

Gitweb:     http://git.kernel.org/linus/02ebd32f52c10f90f810e85d0281e9e81dd6e741
Commit:     02ebd32f52c10f90f810e85d0281e9e81dd6e741
Parent:     a83c0b739f3ad1887704cfa9f1ee5ee208cf1532
Author:     Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
AuthorDate: Fri Mar 13 04:31:34 2009 +0000
Committer:  Paul Mundt <lethal@linux-sh.org>
CommitDate: Mon Mar 16 19:49:01 2009 +0900

    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>
---
 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 ab7b18d..31c2930 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 = {
 	.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)
 {
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sh: Disable get_dma_error_irq for non-SH4 targets., Linux Kernel Mailing ..., (Thu Mar 26, 12:22 pm)