浏览代码

dma/ste_dma40: fix erroneous comparison

A small fallout from Vinod's conversions to dma_transfer_direction,
this small comparison was done with a dma_data_direction instead.
Fix it by comparing against the correct enum.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Linus Walleij 13 年之前
父节点
当前提交
7e426da823
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/dma/ste_dma40.c

+ 1 - 1
drivers/dma/ste_dma40.c

@@ -2116,7 +2116,7 @@ d40_prep_sg(struct dma_chan *dchan, struct scatterlist *sg_src,
 	if (sg_next(&sg_src[sg_len - 1]) == sg_src)
 	if (sg_next(&sg_src[sg_len - 1]) == sg_src)
 		desc->cyclic = true;
 		desc->cyclic = true;
 
 
-	if (direction != DMA_NONE) {
+	if (direction != DMA_TRANS_NONE) {
 		dma_addr_t dev_addr = d40_get_dev_addr(chan, direction);
 		dma_addr_t dev_addr = d40_get_dev_addr(chan, direction);
 
 
 		if (direction == DMA_DEV_TO_MEM)
 		if (direction == DMA_DEV_TO_MEM)