diff options
-rw-r--r-- | drivers/dma/dmaengine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 42ef3457f39e..2432c2a55570 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c | |||
@@ -863,12 +863,12 @@ static bool device_has_all_tx_types(struct dma_device *device) | |||
863 | return false; | 863 | return false; |
864 | #endif | 864 | #endif |
865 | 865 | ||
866 | #if defined(CONFIG_ASYNC_MEMCPY) || defined(CONFIG_ASYNC_MEMCPY_MODULE) | 866 | #if IS_ENABLED(CONFIG_ASYNC_MEMCPY) |
867 | if (!dma_has_cap(DMA_MEMCPY, device->cap_mask)) | 867 | if (!dma_has_cap(DMA_MEMCPY, device->cap_mask)) |
868 | return false; | 868 | return false; |
869 | #endif | 869 | #endif |
870 | 870 | ||
871 | #if defined(CONFIG_ASYNC_XOR) || defined(CONFIG_ASYNC_XOR_MODULE) | 871 | #if IS_ENABLED(CONFIG_ASYNC_XOR) |
872 | if (!dma_has_cap(DMA_XOR, device->cap_mask)) | 872 | if (!dma_has_cap(DMA_XOR, device->cap_mask)) |
873 | return false; | 873 | return false; |
874 | 874 | ||
@@ -878,7 +878,7 @@ static bool device_has_all_tx_types(struct dma_device *device) | |||
878 | #endif | 878 | #endif |
879 | #endif | 879 | #endif |
880 | 880 | ||
881 | #if defined(CONFIG_ASYNC_PQ) || defined(CONFIG_ASYNC_PQ_MODULE) | 881 | #if IS_ENABLED(CONFIG_ASYNC_PQ) |
882 | if (!dma_has_cap(DMA_PQ, device->cap_mask)) | 882 | if (!dma_has_cap(DMA_PQ, device->cap_mask)) |
883 | return false; | 883 | return false; |
884 | 884 | ||