]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dmaengine: k3dma: remove device_alloc_chan_resources handler
authorVinod Koul <vinod.koul@intel.com>
Mon, 16 Mar 2015 08:29:48 +0000 (13:59 +0530)
committerVinod Koul <vinod.koul@intel.com>
Wed, 18 Mar 2015 17:15:11 +0000 (22:45 +0530)
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>
drivers/dma/k3dma.c

index 6f7f43529ccb17a23be497defc32f7e9b424b0c7..c535c58ac672f2ef3660a2556a00005e7c26fcea 100644 (file)
@@ -313,11 +313,6 @@ static void k3_dma_tasklet(unsigned long arg)
        }
 }
 
-static int k3_dma_alloc_chan_resources(struct dma_chan *chan)
-{
-       return 0;
-}
-
 static void k3_dma_free_chan_resources(struct dma_chan *chan)
 {
        struct k3_dma_chan *c = to_k3_chan(chan);
@@ -728,7 +723,6 @@ static int k3_dma_probe(struct platform_device *op)
        dma_cap_set(DMA_SLAVE, d->slave.cap_mask);
        dma_cap_set(DMA_MEMCPY, d->slave.cap_mask);
        d->slave.dev = &op->dev;
-       d->slave.device_alloc_chan_resources = k3_dma_alloc_chan_resources;
        d->slave.device_free_chan_resources = k3_dma_free_chan_resources;
        d->slave.device_tx_status = k3_dma_tx_status;
        d->slave.device_prep_dma_memcpy = k3_dma_prep_memcpy;