aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2015-03-16 04:26:47 -0400
committerVinod Koul <vinod.koul@intel.com>2015-03-18 13:14:27 -0400
commit16cab61800cebca941c47c1c9d76fe9f66e1a486 (patch)
tree3c62a634958aac03cca211c35461a7f52dc7238b /drivers/dma
parent265567fbca7136f1cf45cb49a630cf7109a2308a (diff)
dmaengine: amba-pl08x:remove device_alloc_chan_resources handler
Now that device_alloc_chan_resources handler in not mandatory, remove dummy implementations Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/amba-pl08x.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 4a5fd245014e..aae652b21b50 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -1189,11 +1189,6 @@ static void pl08x_free_txd_list(struct pl08x_driver_data *pl08x,
1189/* 1189/*
1190 * The DMA ENGINE API 1190 * The DMA ENGINE API
1191 */ 1191 */
1192static int pl08x_alloc_chan_resources(struct dma_chan *chan)
1193{
1194 return 0;
1195}
1196
1197static void pl08x_free_chan_resources(struct dma_chan *chan) 1192static void pl08x_free_chan_resources(struct dma_chan *chan)
1198{ 1193{
1199 /* Ensure all queued descriptors are freed */ 1194 /* Ensure all queued descriptors are freed */
@@ -2060,7 +2055,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id)
2060 /* Initialize memcpy engine */ 2055 /* Initialize memcpy engine */
2061 dma_cap_set(DMA_MEMCPY, pl08x->memcpy.cap_mask); 2056 dma_cap_set(DMA_MEMCPY, pl08x->memcpy.cap_mask);
2062 pl08x->memcpy.dev = &adev->dev; 2057 pl08x->memcpy.dev = &adev->dev;
2063 pl08x->memcpy.device_alloc_chan_resources = pl08x_alloc_chan_resources;
2064 pl08x->memcpy.device_free_chan_resources = pl08x_free_chan_resources; 2058 pl08x->memcpy.device_free_chan_resources = pl08x_free_chan_resources;
2065 pl08x->memcpy.device_prep_dma_memcpy = pl08x_prep_dma_memcpy; 2059 pl08x->memcpy.device_prep_dma_memcpy = pl08x_prep_dma_memcpy;
2066 pl08x->memcpy.device_prep_dma_interrupt = pl08x_prep_dma_interrupt; 2060 pl08x->memcpy.device_prep_dma_interrupt = pl08x_prep_dma_interrupt;
@@ -2075,7 +2069,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id)
2075 dma_cap_set(DMA_SLAVE, pl08x->slave.cap_mask); 2069 dma_cap_set(DMA_SLAVE, pl08x->slave.cap_mask);
2076 dma_cap_set(DMA_CYCLIC, pl08x->slave.cap_mask); 2070 dma_cap_set(DMA_CYCLIC, pl08x->slave.cap_mask);
2077 pl08x->slave.dev = &adev->dev; 2071 pl08x->slave.dev = &adev->dev;
2078 pl08x->slave.device_alloc_chan_resources = pl08x_alloc_chan_resources;
2079 pl08x->slave.device_free_chan_resources = pl08x_free_chan_resources; 2072 pl08x->slave.device_free_chan_resources = pl08x_free_chan_resources;
2080 pl08x->slave.device_prep_dma_interrupt = pl08x_prep_dma_interrupt; 2073 pl08x->slave.device_prep_dma_interrupt = pl08x_prep_dma_interrupt;
2081 pl08x->slave.device_tx_status = pl08x_dma_tx_status; 2074 pl08x->slave.device_tx_status = pl08x_dma_tx_status;