diff options
| author | Linus Walleij <linus.walleij@stericsson.com> | 2010-10-06 05:05:29 -0400 |
|---|---|---|
| committer | Dan Williams <dan.j.williams@intel.com> | 2010-10-07 17:56:36 -0400 |
| commit | 9646b7985e906e5fcea9375f016b4519c8318c21 (patch) | |
| tree | 78466dd3825da4ac2ff864e6c246265e5f524f8a | |
| parent | 661385f9c34e15c2f2c57b80e8cb2c7b910fdbd3 (diff) | |
DMAENGINE: define a dummy filter function for ste_dma40
All platform data has to be made conditional on CONFIG_STEDMA40
or we can provide a simple dummy filter functions as to avoid
cluttering the code with other #ifdef:s.
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| -rw-r--r-- | arch/arm/plat-nomadik/include/plat/ste_dma40.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/plat-nomadik/include/plat/ste_dma40.h b/arch/arm/plat-nomadik/include/plat/ste_dma40.h index 660552d33b3a..3dd42551de04 100644 --- a/arch/arm/plat-nomadik/include/plat/ste_dma40.h +++ b/arch/arm/plat-nomadik/include/plat/ste_dma40.h | |||
| @@ -162,6 +162,8 @@ struct stedma40_platform_data { | |||
| 162 | int disabled_channels[STEDMA40_MAX_PHYS]; | 162 | int disabled_channels[STEDMA40_MAX_PHYS]; |
| 163 | }; | 163 | }; |
| 164 | 164 | ||
| 165 | #ifdef CONFIG_STE_DMA40 | ||
| 166 | |||
| 165 | /** | 167 | /** |
| 166 | * stedma40_filter() - Provides stedma40_chan_cfg to the | 168 | * stedma40_filter() - Provides stedma40_chan_cfg to the |
| 167 | * ste_dma40 dma driver via the dmaengine framework. | 169 | * ste_dma40 dma driver via the dmaengine framework. |
| @@ -223,4 +225,21 @@ dma_async_tx_descriptor *stedma40_slave_mem(struct dma_chan *chan, | |||
| 223 | direction, flags); | 225 | direction, flags); |
| 224 | } | 226 | } |
| 225 | 227 | ||
| 228 | #else | ||
| 229 | static inline bool stedma40_filter(struct dma_chan *chan, void *data) | ||
| 230 | { | ||
| 231 | return false; | ||
| 232 | } | ||
| 233 | |||
| 234 | static inline struct | ||
| 235 | dma_async_tx_descriptor *stedma40_slave_mem(struct dma_chan *chan, | ||
| 236 | dma_addr_t addr, | ||
| 237 | unsigned int size, | ||
| 238 | enum dma_data_direction direction, | ||
| 239 | unsigned long flags) | ||
| 240 | { | ||
| 241 | return NULL; | ||
| 242 | } | ||
| 243 | #endif | ||
| 244 | |||
| 226 | #endif | 245 | #endif |
