]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dmaengine: sa11x0: remove device_alloc_chan_resources handler
authorVinod Koul <vinod.koul@intel.com>
Mon, 16 Mar 2015 08:30:27 +0000 (14:00 +0530)
committerVinod Koul <vinod.koul@intel.com>
Wed, 18 Mar 2015 17:15:49 +0000 (22:45 +0530)
Now that device_alloc_chan_resources handler in not mandatory, remove dummy
implementations

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sa11x0-dma.c

index 5adf5407a8cb83a70faec26c6182538df958bcb5..dafe13faa940f425e897efccf6e8cc5ad593046b 100644 (file)
@@ -389,11 +389,6 @@ static void sa11x0_dma_tasklet(unsigned long arg)
 }
 
 
-static int sa11x0_dma_alloc_chan_resources(struct dma_chan *chan)
-{
-       return 0;
-}
-
 static void sa11x0_dma_free_chan_resources(struct dma_chan *chan)
 {
        struct sa11x0_dma_chan *c = to_sa11x0_dma_chan(chan);
@@ -835,7 +830,6 @@ static int sa11x0_dma_init_dmadev(struct dma_device *dmadev,
 
        INIT_LIST_HEAD(&dmadev->channels);
        dmadev->dev = dev;
-       dmadev->device_alloc_chan_resources = sa11x0_dma_alloc_chan_resources;
        dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources;
        dmadev->device_config = sa11x0_dma_device_config;
        dmadev->device_pause = sa11x0_dma_device_pause;