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

of: dma- fix build break for !CONFIG_OF

Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>

authored by

Vinod Koul and committed by
Vinod Koul
4c26bc60 aa3da644

+27
+27
include/linux/of_dma.h
··· 32 32 dma_filter_fn filter_fn; 33 33 }; 34 34 35 + #ifdef CONFIG_OF 35 36 extern int of_dma_controller_register(struct device_node *np, 36 37 struct dma_chan *(*of_dma_xlate) 37 38 (struct of_phandle_args *, struct of_dma *), ··· 42 41 char *name); 43 42 extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, 44 43 struct of_dma *ofdma); 44 + #else 45 + static int of_dma_controller_register(struct device_node *np, 46 + struct dma_chan *(*of_dma_xlate) 47 + (struct of_phandle_args *, struct of_dma *), 48 + void *data) 49 + { 50 + return -ENODEV; 51 + } 52 + 53 + static void of_dma_controller_free(struct device_node *np) 54 + { 55 + } 56 + 57 + static struct dma_chan *of_dma_request_slave_channel(struct device_node *np, 58 + char *name) 59 + { 60 + return NULL; 61 + } 62 + 63 + static struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, 64 + struct of_dma *ofdma) 65 + { 66 + return NULL; 67 + } 68 + 69 + #endif 45 70 46 71 #endif /* __LINUX_OF_DMA_H */