From: Maxime Ripard Date: Thu, 16 Oct 2014 09:00:59 +0000 (+0200) Subject: dmaengine: omap: Remove chancnt affectations X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8c81bfbdb2bc52185500f6b16c14e56c0bb779fb;p=linux-beck.git 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 Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index bbea8243f9e8..6ea1aded7e74 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c @@ -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; }