projects
/
cascardo
/
linux.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
|
history
diff --git
a/drivers/dma/omap-dma.c
b/drivers/dma/omap-dma.c
index
bbea824
..
6ea1ade
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;
}