Skip to content

Commit

Permalink
dmaengine: mmp_pdma: Remove mmp_pdma_filter_fn()
Browse files Browse the repository at this point in the history
It's not used anywhere -- drop it.

Signed-off-by: Lubomir Rintel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
lkundrak authored and vinodkoul committed Jan 26, 2021
1 parent a033a74 commit e247f85
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
14 changes: 0 additions & 14 deletions drivers/dma/mmp_pdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <linux/of_device.h>
#include <linux/of_dma.h>
#include <linux/of.h>
#include <linux/dma/mmp-pdma.h>

#include "dmaengine.h"

Expand Down Expand Up @@ -1148,19 +1147,6 @@ static struct platform_driver mmp_pdma_driver = {
.remove = mmp_pdma_remove,
};

bool mmp_pdma_filter_fn(struct dma_chan *chan, void *param)
{
struct mmp_pdma_chan *c = to_mmp_pdma_chan(chan);

if (chan->device->dev->driver != &mmp_pdma_driver.driver)
return false;

c->drcmr = *(unsigned int *)param;

return true;
}
EXPORT_SYMBOL_GPL(mmp_pdma_filter_fn);

module_platform_driver(mmp_pdma_driver);

MODULE_DESCRIPTION("MARVELL MMP Peripheral DMA Driver");
Expand Down
16 changes: 0 additions & 16 deletions include/linux/dma/mmp-pdma.h

This file was deleted.

0 comments on commit e247f85

Please sign in to comment.