diff options
author | Boojin Kim <boojin.kim@samsung.com> | 2011-09-02 02:44:44 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2011-09-14 07:40:04 +0200 |
commit | 51ddf31da16b1ab9da861eafedad6d263faf4388 (patch) | |
tree | 24d7106ef61ba97e96654c4904cff2167332d1ac /arch/arm/plat-samsung/s3c-dma-ops.c | |
parent | ASoC: Samsung: Update DMA interface (diff) | |
download | linux-51ddf31da16b1ab9da861eafedad6d263faf4388.tar.xz linux-51ddf31da16b1ab9da861eafedad6d263faf4388.zip |
ARM: SAMSUNG: Remove Samsung specific enum type for dma direction
This patch removes the samsung specific enum type 's3c2410_dmasrc'
and uses 'dma_data_direction' instead.
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'arch/arm/plat-samsung/s3c-dma-ops.c')
-rw-r--r-- | arch/arm/plat-samsung/s3c-dma-ops.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/plat-samsung/s3c-dma-ops.c b/arch/arm/plat-samsung/s3c-dma-ops.c index 33ab3241268d..582333c70585 100644 --- a/arch/arm/plat-samsung/s3c-dma-ops.c +++ b/arch/arm/plat-samsung/s3c-dma-ops.c @@ -48,10 +48,7 @@ static unsigned s3c_dma_request(enum dma_ch dma_ch, data->ch = dma_ch; list_add_tail(&data->node, &dma_list); - if (info->direction == DMA_FROM_DEVICE) - s3c2410_dma_devconfig(dma_ch, S3C2410_DMASRC_HW, info->fifo); - else - s3c2410_dma_devconfig(dma_ch, S3C2410_DMASRC_MEM, info->fifo); + s3c2410_dma_devconfig(dma_ch, info->direction, info->fifo); if (info->cap == DMA_CYCLIC) s3c2410_dma_setflags(dma_ch, S3C2410_DMAF_CIRCULAR); |