dmaengine: Add dma_get_slave_caps() inline stub when !CONFIG_DMA_ENGINE
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 19 Jan 2015 11:54:27 +0000 (13:54 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 19 Jan 2015 13:02:51 +0000 (18:32 +0530)
commitfdb8df9933632e177621daf60da74fc693a8c7d1
tree68aed46c45fe2dab629c6c54eb6649db0f1ae56a
parent4d76bbed2d8d9f7bf8bca31e64ef977e015a86fa
dmaengine: Add dma_get_slave_caps() inline stub when !CONFIG_DMA_ENGINE

Commit 0d5484b1c3db8a38 ("dmaengine: Move dma_get_slave_caps()
implementation to dmaengine.c") turned the inline dma_get_slave_caps()
function into an external function without adding an inline stub for the
cases where CONFIG_DMA_ENGINE isn't set. This breaks compilation of
drivers using the DMA engine API when CONFIG_DMA_ENGINE isn't set.

Add an inline stub to fix compilation.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fixes: 0d5484b1c3db ("dmaengine: Move dma_get_slave_caps() implementation to dmaengine.c")
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
include/linux/dmaengine.h