diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2010-02-11 16:50:14 (GMT) |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-03-02 02:09:04 (GMT) |
commit | 8b1935e6a36b0967efc593d67ed3aebbfbc1f5b1 (patch) | |
tree | 811ebd670e9704790625137b4a824e548bded00b /drivers/dma/shdma.h | |
parent | 027811b9b81a6b3ae5aa20c3302897bee9dcf09e (diff) | |
download | linux-8b1935e6a36b0967efc593d67ed3aebbfbc1f5b1.tar.xz |
dmaengine: shdma: separate DMA headers.
Separate SH DMA headers into ones, commonly used by both drivers, and ones,
specific to each of them. This will make the future development of the
dmaengine driver easier.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/dma/shdma.h')
-rw-r--r-- | drivers/dma/shdma.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/shdma.h b/drivers/dma/shdma.h index 800fd88..9f0897f 100644 --- a/drivers/dma/shdma.h +++ b/drivers/dma/shdma.h @@ -17,6 +17,8 @@ #include <linux/interrupt.h> #include <linux/list.h> +#include <asm/dmaengine.h> + #define SH_DMA_TCR_MAX 0x00FFFFFF /* 16MB */ struct sh_dmae_regs { @@ -55,7 +57,7 @@ struct sh_dmae_chan { struct sh_dmae_device { struct dma_device common; - struct sh_dmae_chan *chan[MAX_DMA_CHANNELS]; + struct sh_dmae_chan *chan[SH_DMAC_MAX_CHANNELS]; struct sh_dmae_pdata *pdata; u32 __iomem *chan_reg; u16 __iomem *dmars; |