Skip to content

Commit

Permalink
dma: mmp_tdma: Fix build for ARM64
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring authored and Vinod Koul committed Feb 4, 2015
1 parent 1fb200d commit 09aa8ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/platform_data/dma-mmp_tdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 09aa8ac

Please sign in to comment.