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

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]

Fixes: 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers')
Signed-off-by: Olof Johansson <olof@lixom.net>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Vinod Koul <vinod.koul@Intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>

authored by

Olof Johansson and committed by
Dan Williams
d7fb0300 f984841b

-4
-4
drivers/dma/at_hdmac_regs.h
··· 347 347 { 348 348 return &chan->dev->device; 349 349 } 350 - static struct device *chan2parent(struct dma_chan *chan) 351 - { 352 - return chan->dev->device.parent; 353 - } 354 350 355 351 #if defined(VERBOSE_DEBUG) 356 352 static void vdbg_dump_regs(struct at_dma_chan *atchan)