dmaengine: dma_sync_wait and dma_find_channel undefined
authorJon Mason <jon.mason@intel.com>
Mon, 9 Sep 2013 23:51:59 +0000 (16:51 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 10 Sep 2013 00:02:38 +0000 (17:02 -0700)
dma_sync_wait and dma_find_channel are declared regardless of whether
CONFIG_DMA_ENGINE is enabled, but calling the function without
CONFIG_DMA_ENGINE enabled results "undefined reference" errors.

To get around this, declare dma_sync_wait and dma_find_channel as inline
functions if CONFIG_DMA_ENGINE is undefined.

Signed-off-by: Jon Mason <jon.mason@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>

No differences found