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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/of_dma.h b/include/linux/of_dma.h
index 67158ddd1f3e..84b64f857e23 100644
--- a/include/linux/of_dma.h
+++ b/include/linux/of_dma.h
@@ -25,6 +25,7 @@ struct of_dma {
25 struct dma_chan *(*of_dma_xlate) 25 struct dma_chan *(*of_dma_xlate)
26 (struct of_phandle_args *, struct of_dma *); 26 (struct of_phandle_args *, struct of_dma *);
27 void *of_dma_data; 27 void *of_dma_data;
28 int use_count;
28}; 29};
29 30
30struct of_dma_filter_info { 31struct of_dma_filter_info {
@@ -37,7 +38,7 @@ extern int of_dma_controller_register(struct device_node *np,
37 struct dma_chan *(*of_dma_xlate) 38 struct dma_chan *(*of_dma_xlate)
38 (struct of_phandle_args *, struct of_dma *), 39 (struct of_phandle_args *, struct of_dma *),
39 void *data); 40 void *data);
40extern void of_dma_controller_free(struct device_node *np); 41extern int of_dma_controller_free(struct device_node *np);
41extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np, 42extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
42 char *name); 43 char *name);
43extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, 44extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
@@ -51,7 +52,7 @@ static int of_dma_controller_register(struct device_node *np,
51 return -ENODEV; 52 return -ENODEV;
52} 53}
53 54
54static void of_dma_controller_free(struct device_node *np) 55static int of_dma_controller_free(struct device_node *np)
55{ 56{
56} 57}
57 58