From 4fd9124f41d827b46d0849a22c91f5b7d1b9cdd5 Mon Sep 17 00:00:00 2001 From: Vinod Koul Date: Tue, 25 Sep 2012 09:57:36 +0530 Subject: [PATCH] --- yaml --- r: 358459 b: refs/heads/master c: 4c26bc601d20fa67eefcb27477feda130c10790e h: refs/heads/master i: 358457: 63ac70230686125c84fad5097f2f21d697cfcb7e 358455: 46ae5a744634dcbd3d9326e0c64759d904bae74d v: v3 --- [refs] | 2 +- trunk/include/linux/of_dma.h | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c369e930eaa2..3acefe16b823 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: aa3da644c76d1c2083d085e453c18f7c51f19bc4 +refs/heads/master: 4c26bc601d20fa67eefcb27477feda130c10790e diff --git a/trunk/include/linux/of_dma.h b/trunk/include/linux/of_dma.h index 337823dc6b90..67158ddd1f3e 100644 --- a/trunk/include/linux/of_dma.h +++ b/trunk/include/linux/of_dma.h @@ -32,6 +32,7 @@ struct of_dma_filter_info { dma_filter_fn filter_fn; }; +#ifdef CONFIG_OF extern int of_dma_controller_register(struct device_node *np, struct dma_chan *(*of_dma_xlate) (struct of_phandle_args *, struct of_dma *), @@ -41,5 +42,31 @@ extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np, char *name); extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, struct of_dma *ofdma); +#else +static int of_dma_controller_register(struct device_node *np, + struct dma_chan *(*of_dma_xlate) + (struct of_phandle_args *, struct of_dma *), + void *data) +{ + return -ENODEV; +} + +static void of_dma_controller_free(struct device_node *np) +{ +} + +static struct dma_chan *of_dma_request_slave_channel(struct device_node *np, + char *name) +{ + return NULL; +} + +static struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, + struct of_dma *ofdma) +{ + return NULL; +} + +#endif #endif /* __LINUX_OF_DMA_H */