diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2016-09-21 15:41:30 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-09-28 06:23:14 +0300 |
commit | a8db115e476ee31fc3e892522038da50dd3a66cc (patch) | |
tree | 55f132b2dcc91e391425202cfe0b465cd06b868d /include/linux/omap-dma.h | |
parent | 1634d3083579a0f228fbe337f20fec0e196d36b2 (diff) | |
download | linux-a8db115e476ee31fc3e892522038da50dd3a66cc.tar.xz |
dmaengine/ARM: omap-dma: Fix the DMAengine compile test on non OMAP configs
The DMAengine driver for omap-dma use three function calls from the
plat-omap legacy driver. When the DMAengine driver is built when ARCH_OMAP
is not set, the compilation will fail due to missing symbols.
Add empty inline functions to allow the DMAengine driver to be compiled
with COMPILE_TEST.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/omap-dma.h')
-rw-r--r-- | include/linux/omap-dma.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h index 1d99b61adc65..290081620b3e 100644 --- a/include/linux/omap-dma.h +++ b/include/linux/omap-dma.h @@ -297,6 +297,7 @@ struct omap_system_dma_plat_info { #define dma_omap15xx() __dma_omap15xx(d) #define dma_omap16xx() __dma_omap16xx(d) +#if defined(CONFIG_ARCH_OMAP) extern struct omap_system_dma_plat_info *omap_get_plat_info(void); extern void omap_set_dma_priority(int lch, int dst_port, int priority); @@ -355,4 +356,22 @@ static inline int omap_lcd_dma_running(void) } #endif +#else /* CONFIG_ARCH_OMAP */ + +static inline struct omap_system_dma_plat_info *omap_get_plat_info(void) +{ + return NULL; +} + +static inline int omap_request_dma(int dev_id, const char *dev_name, + void (*callback)(int lch, u16 ch_status, void *data), + void *data, int *dma_ch) +{ + return -ENODEV; +} + +static inline void omap_free_dma(int ch) { } + +#endif /* CONFIG_ARCH_OMAP */ + #endif /* __LINUX_OMAP_DMA_H */ |