From: Rob Herring Date: Tue, 3 Feb 2015 23:07:35 +0000 (-0600) Subject: dma: mmp_tdma: Fix build for ARM64 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=09aa8ac0f9a76b7d650cf3a27a2cfcb4d3d612fb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Vinod Koul --- 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 */