diff options
Diffstat (limited to 'drivers/dma/dmaengine.c')
-rw-r--r-- | drivers/dma/dmaengine.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 93f7992bee5c..9e56745f87bf 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c | |||
@@ -663,11 +663,6 @@ static bool device_has_all_tx_types(struct dma_device *device) | |||
663 | return false; | 663 | return false; |
664 | #endif | 664 | #endif |
665 | 665 | ||
666 | #if defined(CONFIG_ASYNC_MEMSET) || defined(CONFIG_ASYNC_MEMSET_MODULE) | ||
667 | if (!dma_has_cap(DMA_MEMSET, device->cap_mask)) | ||
668 | return false; | ||
669 | #endif | ||
670 | |||
671 | #if defined(CONFIG_ASYNC_XOR) || defined(CONFIG_ASYNC_XOR_MODULE) | 666 | #if defined(CONFIG_ASYNC_XOR) || defined(CONFIG_ASYNC_XOR_MODULE) |
672 | if (!dma_has_cap(DMA_XOR, device->cap_mask)) | 667 | if (!dma_has_cap(DMA_XOR, device->cap_mask)) |
673 | return false; | 668 | return false; |
@@ -729,8 +724,6 @@ int dma_async_device_register(struct dma_device *device) | |||
729 | !device->device_prep_dma_pq); | 724 | !device->device_prep_dma_pq); |
730 | BUG_ON(dma_has_cap(DMA_PQ_VAL, device->cap_mask) && | 725 | BUG_ON(dma_has_cap(DMA_PQ_VAL, device->cap_mask) && |
731 | !device->device_prep_dma_pq_val); | 726 | !device->device_prep_dma_pq_val); |
732 | BUG_ON(dma_has_cap(DMA_MEMSET, device->cap_mask) && | ||
733 | !device->device_prep_dma_memset); | ||
734 | BUG_ON(dma_has_cap(DMA_INTERRUPT, device->cap_mask) && | 727 | BUG_ON(dma_has_cap(DMA_INTERRUPT, device->cap_mask) && |
735 | !device->device_prep_dma_interrupt); | 728 | !device->device_prep_dma_interrupt); |
736 | BUG_ON(dma_has_cap(DMA_SG, device->cap_mask) && | 729 | BUG_ON(dma_has_cap(DMA_SG, device->cap_mask) && |