dma: mmp_tdma: Fix build for ARM64
authorRob Herring <robh@kernel.org>
Tue, 3 Feb 2015 23:07:35 +0000 (17:07 -0600)
committerVinod Koul <vinod.koul@intel.com>
Wed, 4 Feb 2015 01:47:35 +0000 (17:47 -0800)
sram_get_gpool is only used for legacy, non-DT MMP/PXA platforms. Provide
an empty version in order to build on ARM64.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
include/linux/platform_data/dma-mmp_tdma.h

index 66574ea39f97dc8b22e49d6625e0a5c16292b821..0c72886030ef0f3555a2fe78a488b1e0109fae81 100644 (file)
@@ -28,6 +28,13 @@ struct sram_platdata {
        int granularity;
 };
 
+#ifdef CONFIG_ARM
 extern struct gen_pool *sram_get_gpool(char *pool_name);
+#else
+static inline struct gen_pool *sram_get_gpool(char *pool_name)
+{
+       return NULL;
+}
+#endif
 
 #endif /* __DMA_MMP_TDMA_H */