diff options
author | Barry Song <Baohua.Song@csr.com> | 2011-09-15 06:06:30 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2011-09-20 02:21:33 -0400 |
commit | 463894705e4089d0ff69e7d877312d496ac70e5b (patch) | |
tree | 5690c961fa4b989861fc7632ce872300338aedc3 /drivers/dma/timb_dma.c | |
parent | c12056466d76cdff884402d15f077dd0586e5215 (diff) |
dmaengine: delete redundant chan_id and chancnt initialization in dma drivers
dma_async_device_register will re-init chan_id and chancnt,
so whatever chan_id and chancnt are set in drivers, they will
be re-written by dma_async_device_register.
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Viresh Kumar <viresh.kumar@st.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Piotr Ziecik <kosmo@semihalf.com>
Cc: Yong Wang <yong.y.wang@intel.com>
Cc: Jaswinder Singh <jassi.brar@samsung.com>
Cc: Pelagicore AB <info@pelagicore.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Acked-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/timb_dma.c')
-rw-r--r-- | drivers/dma/timb_dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/timb_dma.c b/drivers/dma/timb_dma.c index f69f90a61873..6dbdf451128e 100644 --- a/drivers/dma/timb_dma.c +++ b/drivers/dma/timb_dma.c | |||
@@ -753,7 +753,7 @@ static int __devinit td_probe(struct platform_device *pdev) | |||
753 | 753 | ||
754 | INIT_LIST_HEAD(&td->dma.channels); | 754 | INIT_LIST_HEAD(&td->dma.channels); |
755 | 755 | ||
756 | for (i = 0; i < pdata->nr_channels; i++, td->dma.chancnt++) { | 756 | for (i = 0; i < pdata->nr_channels; i++) { |
757 | struct timb_dma_chan *td_chan = &td->channels[i]; | 757 | struct timb_dma_chan *td_chan = &td->channels[i]; |
758 | struct timb_dma_platform_data_channel *pchan = | 758 | struct timb_dma_platform_data_channel *pchan = |
759 | pdata->channels + i; | 759 | pdata->channels + i; |
@@ -767,7 +767,6 @@ static int __devinit td_probe(struct platform_device *pdev) | |||
767 | 767 | ||
768 | td_chan->chan.device = &td->dma; | 768 | td_chan->chan.device = &td->dma; |
769 | td_chan->chan.cookie = 1; | 769 | td_chan->chan.cookie = 1; |
770 | td_chan->chan.chan_id = i; | ||
771 | spin_lock_init(&td_chan->lock); | 770 | spin_lock_init(&td_chan->lock); |
772 | INIT_LIST_HEAD(&td_chan->active_list); | 771 | INIT_LIST_HEAD(&td_chan->active_list); |
773 | INIT_LIST_HEAD(&td_chan->queue); | 772 | INIT_LIST_HEAD(&td_chan->queue); |