summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-u300
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2010-09-27 17:40:22 +0200
committerLinus Walleij <linus.walleij@linaro.org>2011-03-14 14:05:17 +0100
commit96cb164bdec6f91eadf09a858c4820701f791b37 (patch)
treefc1d5112d76974cd4cd16927e119640b09d1aeca /arch/arm/mach-u300
parent4b4f757c807375564ce3d4ff1d088d3847c52f6d (diff)
downloadtalos-obmc-linux-96cb164bdec6f91eadf09a858c4820701f791b37.tar.gz
talos-obmc-linux-96cb164bdec6f91eadf09a858c4820701f791b37.zip
mach-u300: define a dummy filter function for coh901318
All platform data has to be made conditional on as to avoid cluttering the code with other #ifdef:s. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-u300')
-rw-r--r--arch/arm/mach-u300/include/mach/coh901318.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-u300/include/mach/coh901318.h b/arch/arm/mach-u300/include/mach/coh901318.h
index 6193aaa47794..7c3b2b2d25b6 100644
--- a/arch/arm/mach-u300/include/mach/coh901318.h
+++ b/arch/arm/mach-u300/include/mach/coh901318.h
@@ -102,6 +102,7 @@ struct coh901318_platform {
const int max_channels;
};
+#ifdef CONFIG_COH901318
/**
* coh901318_filter_id() - DMA channel filter function
* @chan: dma channel handle
@@ -110,6 +111,12 @@ struct coh901318_platform {
* In dma_request_channel() it specifies what channel id to be requested
*/
bool coh901318_filter_id(struct dma_chan *chan, void *chan_id);
+#else
+static inline bool coh901318_filter_id(struct dma_chan *chan, void *chan_id)
+{
+ return false;
+}
+#endif
/*
* DMA Controller - this access the static mappings of the coh901318 dma.
OpenPOWER on IntegriCloud