提交 09aa8ac0 编写于 作者: R Rob Herring 提交者: Vinod Koul

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: NRob Herring <robh@kernel.org>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 1fb200d6
...@@ -28,6 +28,13 @@ struct sram_platdata { ...@@ -28,6 +28,13 @@ struct sram_platdata {
int granularity; int granularity;
}; };
#ifdef CONFIG_ARM
extern struct gen_pool *sram_get_gpool(char *pool_name); 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 */ #endif /* __DMA_MMP_TDMA_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册