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/pch_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/pch_dma.c')
-rw-r--r-- | drivers/dma/pch_dma.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c index 1ac8d4b580b7..5b65362024fd 100644 --- a/drivers/dma/pch_dma.c +++ b/drivers/dma/pch_dma.c | |||
@@ -926,7 +926,6 @@ static int __devinit pch_dma_probe(struct pci_dev *pdev, | |||
926 | } | 926 | } |
927 | 927 | ||
928 | pd->dma.dev = &pdev->dev; | 928 | pd->dma.dev = &pdev->dev; |
929 | pd->dma.chancnt = nr_channels; | ||
930 | 929 | ||
931 | INIT_LIST_HEAD(&pd->dma.channels); | 930 | INIT_LIST_HEAD(&pd->dma.channels); |
932 | 931 | ||
@@ -935,7 +934,6 @@ static int __devinit pch_dma_probe(struct pci_dev *pdev, | |||
935 | 934 | ||
936 | pd_chan->chan.device = &pd->dma; | 935 | pd_chan->chan.device = &pd->dma; |
937 | pd_chan->chan.cookie = 1; | 936 | pd_chan->chan.cookie = 1; |
938 | pd_chan->chan.chan_id = i; | ||
939 | 937 | ||
940 | pd_chan->membase = ®s->desc[i]; | 938 | pd_chan->membase = ®s->desc[i]; |
941 | 939 | ||