Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: mmp_pdma: Remove mmp_pdma_filter_fn()

It's not used anywhere -- drop it.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20210121110356.1768635-2-lkundrak@v3.sk
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Lubomir Rintel and committed by
Vinod Koul
e247f85a a033a74e

-30
-14
drivers/dma/mmp_pdma.c
··· 18 18 #include <linux/of_device.h> 19 19 #include <linux/of_dma.h> 20 20 #include <linux/of.h> 21 - #include <linux/dma/mmp-pdma.h> 22 21 23 22 #include "dmaengine.h" 24 23 ··· 1146 1147 .probe = mmp_pdma_probe, 1147 1148 .remove = mmp_pdma_remove, 1148 1149 }; 1149 - 1150 - bool mmp_pdma_filter_fn(struct dma_chan *chan, void *param) 1151 - { 1152 - struct mmp_pdma_chan *c = to_mmp_pdma_chan(chan); 1153 - 1154 - if (chan->device->dev->driver != &mmp_pdma_driver.driver) 1155 - return false; 1156 - 1157 - c->drcmr = *(unsigned int *)param; 1158 - 1159 - return true; 1160 - } 1161 - EXPORT_SYMBOL_GPL(mmp_pdma_filter_fn); 1162 1150 1163 1151 module_platform_driver(mmp_pdma_driver); 1164 1152
-16
include/linux/dma/mmp-pdma.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - #ifndef _MMP_PDMA_H_ 3 - #define _MMP_PDMA_H_ 4 - 5 - struct dma_chan; 6 - 7 - #ifdef CONFIG_MMP_PDMA 8 - bool mmp_pdma_filter_fn(struct dma_chan *chan, void *param); 9 - #else 10 - static inline bool mmp_pdma_filter_fn(struct dma_chan *chan, void *param) 11 - { 12 - return false; 13 - } 14 - #endif 15 - 16 - #endif /* _MMP_PDMA_H_ */