Skip to content

Commit 09aa8ac

Browse files
robherringVinod Koul
authored andcommitted
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>
1 parent 1fb200d commit 09aa8ac

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

include/linux/platform_data/dma-mmp_tdma.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ struct sram_platdata {
2828
int granularity;
2929
};
3030

31+
#ifdef CONFIG_ARM
3132
extern struct gen_pool *sram_get_gpool(char *pool_name);
33+
#else
34+
static inline struct gen_pool *sram_get_gpool(char *pool_name)
35+
{
36+
return NULL;
37+
}
38+
#endif
3239

3340
#endif /* __DMA_MMP_TDMA_H */

0 commit comments

Comments
 (0)