projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09573a8
)
dmaengine: bcm2835: Remove chancnt affectations
author
Maxime Ripard
<maxime.ripard@free-electrons.com>
Thu, 16 Oct 2014 09:00:54 +0000
(11:00 +0200)
committer
Vinod Koul
<vinod.koul@intel.com>
Thu, 6 Nov 2014 06:02:44 +0000
(11:32 +0530)
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>
drivers/dma/bcm2835-dma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/bcm2835-dma.c
b/drivers/dma/bcm2835-dma.c
index 68007974961a5ee63087c07cf7833404b09b7d49..def66fbbb7f33b8c6c166ca53b8e4e418c31c10b 100644
(file)
--- 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)
vchan_init(&c->vc, &d->ddev);
INIT_LIST_HEAD(&c->node);
- d->ddev.chancnt++;
-
c->chan_base = BCM2835_DMA_CHANIO(d->base, chan_id);
c->ch = chan_id;
c->irq_number = irq;