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)
commite8d9f875c9b02bb56ba3bb44834ae81ba0e8efbc
tree60aee6edfd2bd1b4c460039c54106560d014ff4f
parent8c9f7aa316f547f70d270a08d1212f958721c071
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