aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-09-02 06:27:09 -0400
committerVinod Koul <vinod.koul@intel.com>2016-09-26 13:01:04 -0400
commit93d05f1ec644c97535159649de7f8e6731841336 (patch)
tree52ec3fe981598464dfd93b94e880203cddc0faa2
parentcd3a792a77bc4e72e917efcf9dfc7f33cbb2fda8 (diff)
dmaengine: mmp_tdma: enable COMPILE_TEST
To get more coverage, enable COMPILE_TEST for this driver. While at it, to fix build on other archs, select MMP_SRAM only for ARCH_MMP and also fix the platform header Suggested-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/Kconfig4
-rw-r--r--include/linux/platform_data/dma-mmp_tdma.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index 7674a44f72b0..faf702321350 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -304,9 +304,9 @@ config MMP_PDMA
304 304
305config MMP_TDMA 305config MMP_TDMA
306 bool "MMP Two-Channel DMA support" 306 bool "MMP Two-Channel DMA support"
307 depends on ARCH_MMP 307 depends on ARCH_MMP || COMPILE_TEST
308 select DMA_ENGINE 308 select DMA_ENGINE
309 select MMP_SRAM 309 select MMP_SRAM if ARCH_MMP
310 help 310 help
311 Support the MMP Two-Channel DMA engine. 311 Support the MMP Two-Channel DMA engine.
312 This engine used for MMP Audio DMA and pxa910 SQU. 312 This engine used for MMP Audio DMA and pxa910 SQU.
diff --git a/include/linux/platform_data/dma-mmp_tdma.h b/include/linux/platform_data/dma-mmp_tdma.h
index 0c72886030ef..422d4504dbac 100644
--- a/include/linux/platform_data/dma-mmp_tdma.h
+++ b/include/linux/platform_data/dma-mmp_tdma.h
@@ -28,7 +28,7 @@ struct sram_platdata {
28 int granularity; 28 int granularity;
29}; 29};
30 30
31#ifdef CONFIG_ARM 31#ifdef CONFIG_MMP_SRAM
32extern struct gen_pool *sram_get_gpool(char *pool_name); 32extern struct gen_pool *sram_get_gpool(char *pool_name);
33#else 33#else
34static inline struct gen_pool *sram_get_gpool(char *pool_name) 34static inline struct gen_pool *sram_get_gpool(char *pool_name)