]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine/dw_dmac: Don't use magic number for total number of channels
authorViresh Kumar <viresh.kumar@st.com>
Wed, 1 Feb 2012 10:42:21 +0000 (16:12 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 22 Feb 2012 12:45:38 +0000 (18:15 +0530)
commit301a1dc339f819fd0856e669376c2f3579065124
tree60aee6edfd2bd1b4c460039c54106560d014ff4f
parentd439794e16381105b68b951a70606aac3bca3899
dmaengine/dw_dmac: Don't use magic number for total number of channels

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