Message ID | 1426495971-22574-5-git-send-email-vinod.koul@intel.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On 03/16/2015 04:52 PM, Vinod Koul wrote: > Now that device_alloc_chan_resources handler in not mandatory, remove dummy > implementations > > Signed-off-by: Vinod Koul <vinod.koul@intel.com> > Cc: Zhangfei Gao <zhangfei.gao@linaro.org> Thanks Vinod. Have found the patch "dmaengine: Make channel allocation callbacks optional" Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org> > --- > drivers/dma/k3dma.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c > index 6f7f43529ccb..c535c58ac672 100644 > --- a/drivers/dma/k3dma.c > +++ b/drivers/dma/k3dma.c > @@ -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; > -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index 6f7f43529ccb..c535c58ac672 100644 --- a/drivers/dma/k3dma.c +++ b/drivers/dma/k3dma.c @@ -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;
Now that device_alloc_chan_resources handler in not mandatory, remove dummy implementations Signed-off-by: Vinod Koul <vinod.koul@intel.com> Cc: Zhangfei Gao <zhangfei.gao@linaro.org> --- drivers/dma/k3dma.c | 6 ------ 1 file changed, 6 deletions(-)