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:
9d82fae
)
dmaengine: omap: Remove chancnt affectations
author
Maxime Ripard
<maxime.ripard@free-electrons.com>
Thu, 16 Oct 2014 09:00:59 +0000
(11:00 +0200)
committer
Vinod Koul
<vinod.koul@intel.com>
Thu, 6 Nov 2014 06:02:45 +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/omap-dma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/omap-dma.c
b/drivers/dma/omap-dma.c
index bbea8243f9e806a0b0626da6c3336ef644a0dc25..6ea1aded7e74c4ee794d9d1bc9034700f5a5f2d4 100644
(file)
--- a/
drivers/dma/omap-dma.c
+++ b/
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;
}