]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/dma/ipu/ipu_idmac.c
Merge branch 'slab/next' into slab/for-linus
[karo-tx-linux.git] / drivers / dma / ipu / ipu_idmac.c
index 65855373cee656888cc68739e622abd8ce10e59f..8c61d17a86bf182b750d14df3b57f51708a2b326 100644 (file)
@@ -1347,7 +1347,7 @@ static struct dma_async_tx_descriptor *idmac_prep_slave_sg(struct dma_chan *chan
            chan->chan_id != IDMAC_IC_7)
                return NULL;
 
-       if (direction != DMA_DEV_TO_MEM && direction != DMA_MEM_TO_DEV) {
+       if (!is_slave_direction(direction)) {
                dev_err(chan->device->dev, "Invalid DMA direction %d!\n", direction);
                return NULL;
        }