Browse Source

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>
Maxime Ripard 11 năm trước cách đây
mục cha
commit
8c81bfbdb2
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      drivers/dma/omap-dma.c

+ 0 - 2
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;
 }