aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_dma.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of_dma.h')
-rw-r--r--include/linux/of_dma.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/of_dma.h b/include/linux/of_dma.h
index 98ba7525929e..b90d8ec57c1f 100644
--- a/include/linux/of_dma.h
+++ b/include/linux/of_dma.h
@@ -34,7 +34,7 @@ struct of_dma_filter_info {
34 dma_filter_fn filter_fn; 34 dma_filter_fn filter_fn;
35}; 35};
36 36
37#ifdef CONFIG_OF 37#ifdef CONFIG_DMA_OF
38extern int of_dma_controller_register(struct device_node *np, 38extern int of_dma_controller_register(struct device_node *np,
39 struct dma_chan *(*of_dma_xlate) 39 struct dma_chan *(*of_dma_xlate)
40 (struct of_phandle_args *, struct of_dma *), 40 (struct of_phandle_args *, struct of_dma *),
@@ -80,7 +80,7 @@ static inline int of_dma_router_register(struct device_node *np,
80static inline struct dma_chan *of_dma_request_slave_channel(struct device_node *np, 80static inline struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
81 const char *name) 81 const char *name)
82{ 82{
83 return NULL; 83 return ERR_PTR(-ENODEV);
84} 84}
85 85
86static inline struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, 86static inline struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,