Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Ujfalusi and committed by
Vinod Koul
a8db115e 1634d308

+19
+19
include/linux/omap-dma.h
··· 297 297 #define dma_omap15xx() __dma_omap15xx(d) 298 298 #define dma_omap16xx() __dma_omap16xx(d) 299 299 300 + #if defined(CONFIG_ARCH_OMAP) 300 301 extern struct omap_system_dma_plat_info *omap_get_plat_info(void); 301 302 302 303 extern void omap_set_dma_priority(int lch, int dst_port, int priority); ··· 355 354 return 0; 356 355 } 357 356 #endif 357 + 358 + #else /* CONFIG_ARCH_OMAP */ 359 + 360 + static inline struct omap_system_dma_plat_info *omap_get_plat_info(void) 361 + { 362 + return NULL; 363 + } 364 + 365 + static inline int omap_request_dma(int dev_id, const char *dev_name, 366 + void (*callback)(int lch, u16 ch_status, void *data), 367 + void *data, int *dma_ch) 368 + { 369 + return -ENODEV; 370 + } 371 + 372 + static inline void omap_free_dma(int ch) { } 373 + 374 + #endif /* CONFIG_ARCH_OMAP */ 358 375 359 376 #endif /* __LINUX_OMAP_DMA_H */