dmaengine: omap: 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>
This commit is contained in:
Maxime Ripard 2014-10-16 11:00:59 +02:00 committed by Vinod Koul
parent 9d82faeb72
commit 8c81bfbdb2
1 changed files with 0 additions and 2 deletions

View File

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