|
@@ -863,12 +863,12 @@ static bool device_has_all_tx_types(struct dma_device *device)
|
|
return false;
|
|
return false;
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- #if defined(CONFIG_ASYNC_MEMCPY) || defined(CONFIG_ASYNC_MEMCPY_MODULE)
|
|
|
|
|
|
+ #if IS_ENABLED(CONFIG_ASYNC_MEMCPY)
|
|
if (!dma_has_cap(DMA_MEMCPY, device->cap_mask))
|
|
if (!dma_has_cap(DMA_MEMCPY, device->cap_mask))
|
|
return false;
|
|
return false;
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- #if defined(CONFIG_ASYNC_XOR) || defined(CONFIG_ASYNC_XOR_MODULE)
|
|
|
|
|
|
+ #if IS_ENABLED(CONFIG_ASYNC_XOR)
|
|
if (!dma_has_cap(DMA_XOR, device->cap_mask))
|
|
if (!dma_has_cap(DMA_XOR, device->cap_mask))
|
|
return false;
|
|
return false;
|
|
|
|
|
|
@@ -878,7 +878,7 @@ static bool device_has_all_tx_types(struct dma_device *device)
|
|
#endif
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- #if defined(CONFIG_ASYNC_PQ) || defined(CONFIG_ASYNC_PQ_MODULE)
|
|
|
|
|
|
+ #if IS_ENABLED(CONFIG_ASYNC_PQ)
|
|
if (!dma_has_cap(DMA_PQ, device->cap_mask))
|
|
if (!dma_has_cap(DMA_PQ, device->cap_mask))
|
|
return false;
|
|
return false;
|
|
|
|
|