summaryrefslogtreecommitdiffstats
path: root/drivers/dma/pch_dma.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-03-08 14:47:50 +0100
committerVinod Koul <vkoul@kernel.org>2024-04-07 15:06:58 +0200
commit4665be0e952f68306cc6fba2cce68b940a7ec78c (patch)
tree88ae6b3e1cca5100f2005ccd79d5431b0cf6aaac /drivers/dma/pch_dma.c
parentdmaengine: fsl-dpaa2-qdma: Add dpdmai_cmd_open (diff)
downloadlinux-4665be0e952f68306cc6fba2cce68b940a7ec78c.tar.xz
linux-4665be0e952f68306cc6fba2cce68b940a7ec78c.zip
dmaengine: pch_dma: remove unused function chan2parent
The helper function chan2parent is not used and has never been used since the first commit to the code back in 2010. The function is redundant and can be removed. Cleans up clang scan build warning: drivers/dma/pch_dma.c:158:30: warning: unused function 'chan2parent' [-Wunused-function] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240308134750.2058556-1-colin.i.king@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/pch_dma.c')
-rw-r--r--drivers/dma/pch_dma.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c
index c359decc07a3..6b2793b07694 100644
--- a/drivers/dma/pch_dma.c
+++ b/drivers/dma/pch_dma.c
@@ -155,11 +155,6 @@ static inline struct device *chan2dev(struct dma_chan *chan)
return &chan->dev->device;
}
-static inline struct device *chan2parent(struct dma_chan *chan)
-{
- return chan->dev->device.parent;
-}
-
static inline
struct pch_dma_desc *pdc_first_active(struct pch_dma_chan *pd_chan)
{