summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2020-02-09 19:33:46 +0300
committerVinod Koul <vkoul@kernel.org>2020-02-25 11:57:33 +0530
commit14c63abfab4ac0cef7a3ddfecfe51617ac929b3c (patch)
tree81f4582e9f7aca298ef2095951cd53b2148f8894 /drivers/dma
parent3964293aecf9c600962c01a924475a205a715b68 (diff)
downloadlinux-14c63abfab4ac0cef7a3ddfecfe51617ac929b3c.tar.bz2
dmaengine: tegra-apb: Remove unneeded initialization of tdc->config_init
There is no need to re-initialize the already initialized variables. The tdc->config_init=false after driver's probe and after channel's freeing, so there is no need to re-initialize it on the channel's allocation. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Acked-by: Jon Hunter <jonathanh@nvidia.com> Link: https://lore.kernel.org/r/20200209163356.6439-10-digetx@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/tegra20-apb-dma.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c
index 4cc01a82d983..49b2d3c1f935 100644
--- a/drivers/dma/tegra20-apb-dma.c
+++ b/drivers/dma/tegra20-apb-dma.c
@@ -1288,7 +1288,6 @@ static int tegra_dma_alloc_chan_resources(struct dma_chan *dc)
int ret;
dma_cookie_init(&tdc->dma_chan);
- tdc->config_init = false;
ret = pm_runtime_get_sync(tdma->dev);
if (ret < 0)