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

dmaengine: img-mdc: remove device_alloc_chan_resources handler

Now that device_alloc_chan_resources handler in not mandatory, remove dummy
implementations

Acked-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

-6
-6
drivers/dma/img-mdc-dma.c
··· 689 689 return 0; 690 690 } 691 691 692 - static int mdc_alloc_chan_resources(struct dma_chan *chan) 693 - { 694 - return 0; 695 - } 696 - 697 692 static void mdc_free_chan_resources(struct dma_chan *chan) 698 693 { 699 694 struct mdc_chan *mchan = to_mdc_chan(chan); ··· 905 910 mdma->dma_dev.device_prep_slave_sg = mdc_prep_slave_sg; 906 911 mdma->dma_dev.device_prep_dma_cyclic = mdc_prep_dma_cyclic; 907 912 mdma->dma_dev.device_prep_dma_memcpy = mdc_prep_dma_memcpy; 908 - mdma->dma_dev.device_alloc_chan_resources = mdc_alloc_chan_resources; 909 913 mdma->dma_dev.device_free_chan_resources = mdc_free_chan_resources; 910 914 mdma->dma_dev.device_tx_status = mdc_tx_status; 911 915 mdma->dma_dev.device_issue_pending = mdc_issue_pending;