]> Pileus Git - ~andy/linux/blobdiff - drivers/dma/ep93xx_dma.c
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[~andy/linux] / drivers / dma / ep93xx_dma.c
index bcfde400904ff9a6dd05e957eb1159d5fc98f771..f2bf8c0c46757d0dbd351af10660cc5643f2cfbd 100644 (file)
@@ -903,8 +903,7 @@ static int ep93xx_dma_alloc_chan_resources(struct dma_chan *chan)
                        switch (data->port) {
                        case EP93XX_DMA_SSP:
                        case EP93XX_DMA_IDE:
-                               if (data->direction != DMA_MEM_TO_DEV &&
-                                   data->direction != DMA_DEV_TO_MEM)
+                               if (!is_slave_direction(data->direction))
                                        return -EINVAL;
                                break;
                        default: