aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/dma-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-samsung/dma-ops.c')
-rw-r--r--arch/arm/plat-samsung/dma-ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-samsung/dma-ops.c b/arch/arm/plat-samsung/dma-ops.c
index 93a994a5dd8f..1baa8ce82432 100644
--- a/arch/arm/plat-samsung/dma-ops.c
+++ b/arch/arm/plat-samsung/dma-ops.c
@@ -36,14 +36,14 @@ static unsigned samsung_dmadev_request(enum dma_ch dma_ch,
36 36
37 chan = dma_request_channel(mask, pl330_filter, (void *)dma_ch); 37 chan = dma_request_channel(mask, pl330_filter, (void *)dma_ch);
38 38
39 if (info->direction == DMA_FROM_DEVICE) { 39 if (info->direction == DMA_DEV_TO_MEM) {
40 memset(&slave_config, 0, sizeof(struct dma_slave_config)); 40 memset(&slave_config, 0, sizeof(struct dma_slave_config));
41 slave_config.direction = info->direction; 41 slave_config.direction = info->direction;
42 slave_config.src_addr = info->fifo; 42 slave_config.src_addr = info->fifo;
43 slave_config.src_addr_width = info->width; 43 slave_config.src_addr_width = info->width;
44 slave_config.src_maxburst = 1; 44 slave_config.src_maxburst = 1;
45 dmaengine_slave_config(chan, &slave_config); 45 dmaengine_slave_config(chan, &slave_config);
46 } else if (info->direction == DMA_TO_DEVICE) { 46 } else if (info->direction == DMA_MEM_TO_DEV) {
47 memset(&slave_config, 0, sizeof(struct dma_slave_config)); 47 memset(&slave_config, 0, sizeof(struct dma_slave_config));
48 slave_config.direction = info->direction; 48 slave_config.direction = info->direction;
49 slave_config.dst_addr = info->fifo; 49 slave_config.dst_addr = info->fifo;