aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2014-10-16 05:00:54 -0400
committerVinod Koul <vinod.koul@intel.com>2014-11-06 01:02:44 -0500
commit9eba5536a7434c69d8c185d4bd1c70734d92287d (patch)
tree21f5985fdce1671086f5273b900d4d5cabed6ee8
parent09573a89cfdadf72747dbfbf8f8b79becb2dd457 (diff)
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>
-rw-r--r--drivers/dma/bcm2835-dma.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c
index 68007974961a..def66fbbb7f3 100644
--- a/drivers/dma/bcm2835-dma.c
+++ b/drivers/dma/bcm2835-dma.c
@@ -525,8 +525,6 @@ static int bcm2835_dma_chan_init(struct bcm2835_dmadev *d, int chan_id, int irq)
525 vchan_init(&c->vc, &d->ddev); 525 vchan_init(&c->vc, &d->ddev);
526 INIT_LIST_HEAD(&c->node); 526 INIT_LIST_HEAD(&c->node);
527 527
528 d->ddev.chancnt++;
529
530 c->chan_base = BCM2835_DMA_CHANIO(d->base, chan_id); 528 c->chan_base = BCM2835_DMA_CHANIO(d->base, chan_id);
531 c->ch = chan_id; 529 c->ch = chan_id;
532 c->irq_number = irq; 530 c->irq_number = irq;