dmaengine: pl08x: Remove chancnt affectations
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 16 Oct 2014 09:00:53 +0000 (11:00 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 6 Nov 2014 06:02:44 +0000 (11:32 +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/amba-pl08x.c

index e34024b000a4b42952d67ac02b84c6b6593112d7..1364d00881dd5659d7c083b2f354f95be5749cb8 100644 (file)
@@ -2164,7 +2164,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id)
                         __func__, ret);
                goto out_no_memcpy;
        }
-       pl08x->memcpy.chancnt = ret;
 
        /* Register slave channels */
        ret = pl08x_dma_init_virtual_channels(pl08x, &pl08x->slave,
@@ -2175,7 +2174,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id)
                                __func__, ret);
                goto out_no_slave;
        }
-       pl08x->slave.chancnt = ret;
 
        ret = dma_async_device_register(&pl08x->memcpy);
        if (ret) {