aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-02-03 17:07:35 -0600
committerVinod Koul <vinod.koul@intel.com>2015-02-03 17:47:35 -0800
commit09aa8ac0f9a76b7d650cf3a27a2cfcb4d3d612fb (patch)
treece63ef8d328468b932ee5c432f5aa58d1ea3e20d /include/linux/platform_data
parentdmaengine: dw: update MAINTAINERS file (diff)
downloadlinux-dev-09aa8ac0f9a76b7d650cf3a27a2cfcb4d3d612fb.tar.xz
linux-dev-09aa8ac0f9a76b7d650cf3a27a2cfcb4d3d612fb.zip
dma: mmp_tdma: Fix build for ARM64
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>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/dma-mmp_tdma.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/platform_data/dma-mmp_tdma.h b/include/linux/platform_data/dma-mmp_tdma.h
index 66574ea39f97..0c72886030ef 100644
--- a/include/linux/platform_data/dma-mmp_tdma.h
+++ b/include/linux/platform_data/dma-mmp_tdma.h
@@ -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 */