Skip to content

Commit 9eba553

Browse files
mripardVinod Koul
authored andcommitted
dmaengine: bcm2835: 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>
1 parent 09573a8 commit 9eba553

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/dma/bcm2835-dma.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,6 @@ static int bcm2835_dma_chan_init(struct bcm2835_dmadev *d, int chan_id, int irq)
525525
vchan_init(&c->vc, &d->ddev);
526526
INIT_LIST_HEAD(&c->node);
527527

528-
d->ddev.chancnt++;
529-
530528
c->chan_base = BCM2835_DMA_CHANIO(d->base, chan_id);
531529
c->ch = chan_id;
532530
c->irq_number = irq;

0 commit comments

Comments
 (0)