aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_dma.h
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@linux.intel.com>2012-09-25 00:27:36 -0400
committerVinod Koul <vinod.koul@intel.com>2013-01-06 23:57:46 -0500
commit4c26bc601d20fa67eefcb27477feda130c10790e (patch)
treec60619e1a90213b8f52856069a2f2f4a6da17cbb /include/linux/of_dma.h
parentaa3da644c76d1c2083d085e453c18f7c51f19bc4 (diff)
of: dma- fix build break for !CONFIG_OF
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'include/linux/of_dma.h')
-rw-r--r--include/linux/of_dma.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/linux/of_dma.h b/include/linux/of_dma.h
index 337823dc6b90..67158ddd1f3e 100644
--- a/include/linux/of_dma.h
+++ b/include/linux/of_dma.h
@@ -32,6 +32,7 @@ struct of_dma_filter_info {
32 dma_filter_fn filter_fn; 32 dma_filter_fn filter_fn;
33}; 33};
34 34
35#ifdef CONFIG_OF
35extern int of_dma_controller_register(struct device_node *np, 36extern int of_dma_controller_register(struct device_node *np,
36 struct dma_chan *(*of_dma_xlate) 37 struct dma_chan *(*of_dma_xlate)
37 (struct of_phandle_args *, struct of_dma *), 38 (struct of_phandle_args *, struct of_dma *),
@@ -41,5 +42,31 @@ extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
41 char *name); 42 char *name);
42extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, 43extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
43 struct of_dma *ofdma); 44 struct of_dma *ofdma);
45#else
46static int of_dma_controller_register(struct device_node *np,
47 struct dma_chan *(*of_dma_xlate)
48 (struct of_phandle_args *, struct of_dma *),
49 void *data)
50{
51 return -ENODEV;
52}
53
54static void of_dma_controller_free(struct device_node *np)
55{
56}
57
58static struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
59 char *name)
60{
61 return NULL;
62}
63
64static struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
65 struct of_dma *ofdma)
66{
67 return NULL;
68}
69
70#endif
44 71
45#endif /* __LINUX_OF_DMA_H */ 72#endif /* __LINUX_OF_DMA_H */