Merge branch 'for-3.12/sensor-hub' into for-linus
[linux-2.6-block.git] / include / linux / shdma-base.h
index 382cf710ca9aa11b001d874efa516e229f5b8254..5b1c9848124cb8c366f95a0dbfaa6d54d64d1927 100644 (file)
@@ -124,6 +124,10 @@ void shdma_chan_remove(struct shdma_chan *schan);
 int shdma_init(struct device *dev, struct shdma_dev *sdev,
                    int chan_num);
 void shdma_cleanup(struct shdma_dev *sdev);
+#if IS_ENABLED(CONFIG_SH_DMAE_BASE)
 bool shdma_chan_filter(struct dma_chan *chan, void *arg);
+#else
+#define shdma_chan_filter NULL
+#endif
 
 #endif