aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ipu/ipu_idmac.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-03-25 12:13:24 -0400
committerDan Williams <dan.j.williams@intel.com>2009-03-25 12:13:24 -0400
commitccccce229c633a92c42cd1a40c0738d7b0d12644 (patch)
treea954537ae73f2e03c4431b244796cdc255af7a10 /drivers/dma/ipu/ipu_idmac.c
parent8d47bae004f062630f69f7f83d098424252e232d (diff)
dmaengine: initialize tx_list in dma_async_tx_descriptor_init
Centralize this common initialization (and one case where ipu_idmac is duplicating ->chan initialization). Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ipu/ipu_idmac.c')
-rw-r--r--drivers/dma/ipu/ipu_idmac.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c
index 0a525c450f24..7ce0e25266dc 100644
--- a/drivers/dma/ipu/ipu_idmac.c
+++ b/drivers/dma/ipu/ipu_idmac.c
@@ -983,8 +983,6 @@ static int idmac_desc_alloc(struct idmac_channel *ichan, int n)
983 memset(txd, 0, sizeof(*txd)); 983 memset(txd, 0, sizeof(*txd));
984 dma_async_tx_descriptor_init(txd, &ichan->dma_chan); 984 dma_async_tx_descriptor_init(txd, &ichan->dma_chan);
985 txd->tx_submit = idmac_tx_submit; 985 txd->tx_submit = idmac_tx_submit;
986 txd->chan = &ichan->dma_chan;
987 INIT_LIST_HEAD(&txd->tx_list);
988 986
989 list_add(&desc->list, &ichan->free_list); 987 list_add(&desc->list, &ichan->free_list);
990 988