]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mach-u300: define a dummy filter function for coh901318
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 27 Sep 2010 15:40:22 +0000 (17:40 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Mar 2011 13:05:17 +0000 (14:05 +0100)
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>
arch/arm/mach-u300/include/mach/coh901318.h

index 6193aaa47794dbd6a51796af70de4d0d010f5d12..7c3b2b2d25b66c6621cb92fbcde49e721d6ea926 100644 (file)
@@ -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.