dmaengine: at_hdmac: remove unused function
PATCH 1/1 dmaengine: at_hdmac: remove unused function
commit 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers') refactored some code which resulted in an unused function in the at_hdmac driver:
drivers/dma/at_hdmac_regs.h:350:23: warning: 'chan2parent' defined but
not used [-Wunused-function]
---
Dan,
Looks like you fixed up the DesignWare driver for the same issue but this needs it to.
drivers/dma/at_hdmac_regs.h | 4 ---- 1 file changed, 4 deletions(-)
drivers/dma/at_hdmac_regs.h +0 -4
@@ -347,10 +347,6 @@ static struct device *chan2dev(struct dma_chan *chan) {return &chan->dev->device; } -static struct device *chan2parent (struct dma_chan *chan) -{ -return chan->dev->device.parent; -}#if defined(VERBOSE_DEBUG )static void vdbg_dump_regs (struct at_dma_chan *atchan)
Signature · 1 line
1.8.4.1.601.g02b3b1d
On 26/11/2013 19:43, Olof Johansson :
Quoted 10 lines
commit
54f8d501e8428('dmaengine: remove DMA unmap from drivers') refactored some code which resulted in an unused function in theat_hdmacdriver:
drivers/dma/at_hdmac_regs.h:350:23: warning: 'chan2parent' defined but
not used [-Wunused-function]Fixes 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers')Signed-off-by Olof Johansson <[email protected]>Cc Bartlomiej Zolnierkiewicz <[email protected]>
Indeed,
Thanks Olof for having taken care of this.
Bye,
Quoted 26 lines
---
Dan,
Looks like you fixed up the DesignWare driver for the same issue but this needs it to.
drivers/dma/at_hdmac_regs.h | 4 ---- 1 file changed, 4 deletions(-)drivers/dma/at_hdmac_regs.h +0
-4@@ -347,10 +347,6 @@ static struct device *chan2dev(struct dma_chan *chan) {return &chan->dev->device; } -static struct device *chan2parent (struct dma_chan *chan) -{ -return chan->dev->device.parent; -}#if defined(VERBOSE_DEBUG )static void vdbg_dump_regs (struct at_dma_chan *atchan)
Signature · 1 line
Nicolas Ferre
Hi Olof,
Quoted 10 lines · Olof Johansson
commit
54f8d501e8428('dmaengine: remove DMA unmap from drivers') refactored some code which resulted in an unused function in theat_hdmacdriver:
drivers/dma/at_hdmac_regs.h:350:23: warning: 'chan2parent' defined but
not used [-Wunused-function]Fixes 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers')Signed-off-by Olof Johansson <[email protected]>Cc Bartlomiej Zolnierkiewicz <[email protected]>
Thanks for catching and fixing this.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Quoted 25 lines
---
Dan,
Looks like you fixed up the DesignWare driver for the same issue but this needs it to.
drivers/dma/at_hdmac_regs.h | 4 ---- 1 file changed, 4 deletions(-)drivers/dma/at_hdmac_regs.h +0
-4@@ -347,10 +347,6 @@ static struct device *chan2dev(struct dma_chan *chan) {return &chan->dev->device; } -static struct device *chan2parent (struct dma_chan *chan) -{ -return chan->dev->device.parent; -}#if defined(VERBOSE_DEBUG )static void vdbg_dump_regs (struct at_dma_chan *atchan)
Quoted 10 lines · Olof Johansson
commit
54f8d501e8428('dmaengine: remove DMA unmap from drivers') refactored some code which resulted in an unused function in theat_hdmacdriver:
drivers/dma/at_hdmac_regs.h:350:23: warning: 'chan2parent' defined but
not used [-Wunused-function]Fixes 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers')Signed-off-by Olof Johansson <[email protected]>Cc Bartlomiej Zolnierkiewicz <[email protected]>
Quoted 32 lines
---
Dan,
Looks like you fixed up the DesignWare driver for the same issue but this needs it to.
drivers/dma/at_hdmac_regs.h | 4 ---- 1 file changed, 4 deletions(-)drivers/dma/at_hdmac_regs.h +0
-4@@ -347,10 +347,6 @@ static struct device *chan2dev(struct dma_chan *chan) {return &chan->dev->device; } -static struct device *chan2parent (struct dma_chan *chan) -{ -return chan->dev->device.parent; -}#if defined(VERBOSE_DEBUG )static void vdbg_dump_regs (struct at_dma_chan *atchan)Signature · 6 lines
1.8.4.1.601.g02b3b1d -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html