Skip to content

Commit 06b80ad

Browse files
krzkvinodkoul
authored andcommitted
dmaengine: dw-edma: Drop unused dchan2dev() and chan2dev()
Static functions dchan2dev() and chan2dev() are not used, W=1 build: dw-edma-core.c:27:16: error: unused function 'dchan2dev' [-Werror,-Wunused-function] dw-edma-core.c:33:16: error: unused function 'chan2dev' [-Werror,-Wunused-function] Fixes: e63d79d ("dmaengine: Add Synopsys eDMA IP core driver") Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 6e6d3c6 commit 06b80ad

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

drivers/dma/dw-edma/dw-edma-core.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@
2323
#include "../dmaengine.h"
2424
#include "../virt-dma.h"
2525

26-
static inline
27-
struct device *dchan2dev(struct dma_chan *dchan)
28-
{
29-
return &dchan->dev->device;
30-
}
31-
32-
static inline
33-
struct device *chan2dev(struct dw_edma_chan *chan)
34-
{
35-
return &chan->vc.chan.dev->device;
36-
}
37-
3826
static inline
3927
struct dw_edma_desc *vd2dw_edma_desc(struct virt_dma_desc *vd)
4028
{

0 commit comments

Comments
 (0)