]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dmaengine: mmp_tdma: enable COMPILE_TEST
authorVinod Koul <vinod.koul@intel.com>
Fri, 2 Sep 2016 10:27:09 +0000 (15:57 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 17:01:04 +0000 (22:31 +0530)
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>
drivers/dma/Kconfig
include/linux/platform_data/dma-mmp_tdma.h

index 7674a44f72b0134f8e5ed15cf785c1e17f5347af..faf702321350a7c67d09f5799db6964aac3b4fe5 100644 (file)
@@ -304,9 +304,9 @@ config MMP_PDMA
 
 config MMP_TDMA
        bool "MMP Two-Channel DMA support"
-       depends on ARCH_MMP
+       depends on ARCH_MMP || COMPILE_TEST
        select DMA_ENGINE
-       select MMP_SRAM
+       select MMP_SRAM if ARCH_MMP
        help
          Support the MMP Two-Channel DMA engine.
          This engine used for MMP Audio DMA and pxa910 SQU.
index 0c72886030ef0f3555a2fe78a488b1e0109fae81..422d4504dbacd78f0f76beaef86043a3527fc9cc 100644 (file)
@@ -28,7 +28,7 @@ struct sram_platdata {
        int granularity;
 };
 
-#ifdef CONFIG_ARM
+#ifdef CONFIG_MMP_SRAM
 extern struct gen_pool *sram_get_gpool(char *pool_name);
 #else
 static inline struct gen_pool *sram_get_gpool(char *pool_name)