projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c9f7aa
)
dmaengine/dw_dmac: Don't use magic number for total number of channels
author
Viresh Kumar
<viresh.kumar@st.com>
Wed, 1 Feb 2012 10:42:21 +0000
(16:12 +0530)
committer
Vinod Koul
<vinod.koul@linux.intel.com>
Wed, 22 Feb 2012 12:45:38 +0000
(18:15 +0530)
Total number of channels is passed in pdata->nr_channels variable, thus we must
not use magic number '7' for total number of channels.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/dw_dmac.c
patch
|
blob
|
history
diff --git
a/drivers/dma/dw_dmac.c
b/drivers/dma/dw_dmac.c
index 3a3d7edcd5533ea87ce2729a262c3dd1ccfac06b..1577394237346ac763da5e6281a1465af6dda2ae 100644
(file)
--- a/
drivers/dma/dw_dmac.c
+++ b/
drivers/dma/dw_dmac.c
@@
-1432,7
+1432,7
@@
static int __init dw_probe(struct platform_device *pdev)
/* 7 is highest priority & 0 is lowest. */
if (pdata->chan_priority == CHAN_PRIORITY_ASCENDING)
- dwc->priority =
7 - i
;
+ dwc->priority =
pdata->nr_channels - i - 1
;
else
dwc->priority = i;