diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-05-11 13:39:27 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-05-14 13:32:03 +0530 |
commit | d57d3a48ca784615e839475d8bdf8f3cecf77c8d (patch) | |
tree | 7df8bb93d46159f0050152d1880750229b737b74 /drivers/dma/dmaengine.c | |
parent | dd4e91d538b3d16d5241575a3fb654a9aa50392c (diff) | |
download | blackbird-obmc-linux-d57d3a48ca784615e839475d8bdf8f3cecf77c8d.tar.gz blackbird-obmc-linux-d57d3a48ca784615e839475d8bdf8f3cecf77c8d.zip |
dmaengine: core: Use IS_ENABLED() instead of checking for built-in or module
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dmaengine.c')
-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) return false; #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)) return false; #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)) return false; @@ -878,7 +878,7 @@ static bool device_has_all_tx_types(struct dma_device *device) #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)) return false; |