Skip to content

Commit

Permalink
sh: Disable get_dma_error_irq for non-SH4 targets.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nobuhiro Iwamatsu authored and Paul Mundt committed Mar 16, 2009
1 parent a83c0b7 commit 02ebd32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sh/drivers/dma/dma-sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -293,6 +294,7 @@ static unsigned int get_dma_error_irq(int n)
#endif
#endif
}
#endif

static int __init sh_dmac_init(void)
{
Expand Down

0 comments on commit 02ebd32

Please sign in to comment.