summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh/rcar-audmapp.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2014-10-16 11:01:01 +0200
committerVinod Koul <vinod.koul@intel.com>2014-11-06 11:33:07 +0530
commit1e916474a98eced0c2fd7dfeb13636ddf1e20348 (patch)
tree764136d1c23a174d94a6fcd96ae1d3a5698f5567 /drivers/dma/sh/rcar-audmapp.c
parent9aa7171157ef452517056e1368459d6f5b4636aa (diff)
dmaengine: sh: Remove chancnt affectations
chanctnt is already filled by dma_async_device_register, which uses the channel list to know how much channels there is. Since it's already filled, we can safely remove it from the drivers' probe function. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sh/rcar-audmapp.c')
-rw-r--r--drivers/dma/sh/rcar-audmapp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/sh/rcar-audmapp.c b/drivers/dma/sh/rcar-audmapp.c
index 80fd2aeb487..3db6be7d7c2 100644
--- a/drivers/dma/sh/rcar-audmapp.c
+++ b/drivers/dma/sh/rcar-audmapp.c
@@ -253,7 +253,6 @@ static int audmapp_chan_probe(struct platform_device *pdev,
static void audmapp_chan_remove(struct audmapp_device *audev)
{
- struct dma_device *dma_dev = &audev->shdma_dev.dma_dev;
struct shdma_chan *schan;
int i;
@@ -261,7 +260,6 @@ static void audmapp_chan_remove(struct audmapp_device *audev)
BUG_ON(!schan);
shdma_chan_remove(schan);
}
- dma_dev->chancnt = 0;
}
static struct dma_chan *audmapp_of_xlate(struct of_phandle_args *dma_spec,