Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358459
b: refs/heads/master
c: 4c26bc6
h: refs/heads/master
i:
  358457: 63ac702
  358455: 46ae5a7
v: v3
  • Loading branch information
Vinod Koul authored and Vinod Koul committed Jan 7, 2013
1 parent 0f81682 commit 4fd9124
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa3da644c76d1c2083d085e453c18f7c51f19bc4
refs/heads/master: 4c26bc601d20fa67eefcb27477feda130c10790e
27 changes: 27 additions & 0 deletions trunk/include/linux/of_dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *),
Expand All @@ -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 */

0 comments on commit 4fd9124

Please sign in to comment.