git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f8f7d76
)
ARM: OMAP: dma: Remove the wrong dev_id check
author
R Sricharan
<r.sricharan@ti.com>
Thu, 13 Jun 2013 14:17:09 +0000
(19:47 +0530)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Sun, 7 Jun 2015 20:24:48 +0000
(23:24 +0300)
Once a free channel is found, the check for dev_id == 0 does
not make any sense. Get rid of it.
Signed-off-by: R Sricharan <r.sricharan@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dma.c
patch
|
blob
|
history
diff --git
a/arch/arm/plat-omap/dma.c
b/arch/arm/plat-omap/dma.c
index
d6bf94f
..
c9b5253
100644
(file)
--- a/
arch/arm/plat-omap/dma.c
+++ b/
arch/arm/plat-omap/dma.c
@@
-689,8
+689,8
@@
int omap_request_dma(int dev_id, const char *dev_name,
for (ch = 0; ch < dma_chan_count; ch++) {
if (free_ch == -1 && dma_chan[ch].dev_id == -1) {
free_ch = ch;
- if (dev_id == 0)
-
break;
+ /* Exit after first free channel found */
+ break;
}
}
if (free_ch == -1) {