]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dmaengine: omap: Remove chancnt affectations
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 16 Oct 2014 09:00:59 +0000 (11:00 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 6 Nov 2014 06:02:45 +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/omap-dma.c

index bbea8243f9e806a0b0626da6c3336ef644a0dc25..6ea1aded7e74c4ee794d9d1bc9034700f5a5f2d4 100644 (file)
@@ -1074,8 +1074,6 @@ static int omap_dma_chan_init(struct omap_dmadev *od, int dma_sig)
        vchan_init(&c->vc, &od->ddev);
        INIT_LIST_HEAD(&c->node);
 
-       od->ddev.chancnt++;
-
        return 0;
 }