dmaengine: sun6i: Remove chancnt affectations
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 16 Oct 2014 09:01:03 +0000 (11:01 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 6 Nov 2014 06:06:19 +0000 (11:36 +0530)
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>
drivers/dma/sun6i-dma.c

index 3aa10b32825491dce9d5c0ad244ddc53f78df12e..a00157afc5b86d97663c43317dce5afc7430cbad 100644 (file)
@@ -914,7 +914,6 @@ static int sun6i_dma_probe(struct platform_device *pdev)
        sdc->slave.device_prep_slave_sg         = sun6i_dma_prep_slave_sg;
        sdc->slave.device_prep_dma_memcpy       = sun6i_dma_prep_dma_memcpy;
        sdc->slave.device_control               = sun6i_dma_control;
-       sdc->slave.chancnt                      = NR_MAX_VCHANS;
 
        sdc->slave.dev = &pdev->dev;