mirror of https://gitee.com/openkylin/linux.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 <maxime.ripard@free-electrons.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
9d82faeb72
commit
8c81bfbdb2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue