aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2014-10-16 05:01:03 -0400
committerVinod Koul <vinod.koul@intel.com>2014-11-06 01:06:19 -0500
commit1eacd4438f361256f5a524ef603f536e2c885100 (patch)
tree98d4d01cf62771e0b6a818288d274e8cec1ebb7d /drivers/dma
parent35202451c8e6e5d76fe169e009f3587137686a7c (diff)
dmaengine: sun6i: 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> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/sun6i-dma.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c
index 3aa10b328254..a00157afc5b8 100644
--- a/drivers/dma/sun6i-dma.c
+++ b/drivers/dma/sun6i-dma.c
@@ -914,7 +914,6 @@ static int sun6i_dma_probe(struct platform_device *pdev)
914 sdc->slave.device_prep_slave_sg = sun6i_dma_prep_slave_sg; 914 sdc->slave.device_prep_slave_sg = sun6i_dma_prep_slave_sg;
915 sdc->slave.device_prep_dma_memcpy = sun6i_dma_prep_dma_memcpy; 915 sdc->slave.device_prep_dma_memcpy = sun6i_dma_prep_dma_memcpy;
916 sdc->slave.device_control = sun6i_dma_control; 916 sdc->slave.device_control = sun6i_dma_control;
917 sdc->slave.chancnt = NR_MAX_VCHANS;
918 917
919 sdc->slave.dev = &pdev->dev; 918 sdc->slave.dev = &pdev->dev;
920 919