Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218792
b: refs/heads/master
c: 9646b79
h: refs/heads/master
v: v3
  • Loading branch information
Linus Walleij authored and Dan Williams committed Oct 7, 2010
1 parent bde6352 commit 33ec9de
Show file tree
Hide file tree
Showing 2 changed files with 20 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: 661385f9c34e15c2f2c57b80e8cb2c7b910fdbd3
refs/heads/master: 9646b7985e906e5fcea9375f016b4519c8318c21
19 changes: 19 additions & 0 deletions trunk/arch/arm/plat-nomadik/include/plat/ste_dma40.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ struct stedma40_platform_data {
int disabled_channels[STEDMA40_MAX_PHYS];
};

#ifdef CONFIG_STE_DMA40

/**
* stedma40_filter() - Provides stedma40_chan_cfg to the
* ste_dma40 dma driver via the dmaengine framework.
Expand Down Expand Up @@ -223,4 +225,21 @@ dma_async_tx_descriptor *stedma40_slave_mem(struct dma_chan *chan,
direction, flags);
}

#else
static inline bool stedma40_filter(struct dma_chan *chan, void *data)
{
return false;
}

static inline struct
dma_async_tx_descriptor *stedma40_slave_mem(struct dma_chan *chan,
dma_addr_t addr,
unsigned int size,
enum dma_data_direction direction,
unsigned long flags)
{
return NULL;
}
#endif

#endif

0 comments on commit 33ec9de

Please sign in to comment.