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

dmaengine: k3dma: remove device_alloc_chan_resources handler

Now that device_alloc_chan_resources handler in not mandatory, remove dummy
implementations

Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

-6
-6
drivers/dma/k3dma.c
··· 313 313 } 314 314 } 315 315 316 - static int k3_dma_alloc_chan_resources(struct dma_chan *chan) 317 - { 318 - return 0; 319 - } 320 - 321 316 static void k3_dma_free_chan_resources(struct dma_chan *chan) 322 317 { 323 318 struct k3_dma_chan *c = to_k3_chan(chan); ··· 723 728 dma_cap_set(DMA_SLAVE, d->slave.cap_mask); 724 729 dma_cap_set(DMA_MEMCPY, d->slave.cap_mask); 725 730 d->slave.dev = &op->dev; 726 - d->slave.device_alloc_chan_resources = k3_dma_alloc_chan_resources; 727 731 d->slave.device_free_chan_resources = k3_dma_free_chan_resources; 728 732 d->slave.device_tx_status = k3_dma_tx_status; 729 733 d->slave.device_prep_dma_memcpy = k3_dma_prep_memcpy;