diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-03-25 12:13:24 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-03-25 12:13:24 -0400 |
commit | ccccce229c633a92c42cd1a40c0738d7b0d12644 (patch) | |
tree | a954537ae73f2e03c4431b244796cdc255af7a10 /drivers/dma/dmaengine.c | |
parent | 8d47bae004f062630f69f7f83d098424252e232d (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/dmaengine.c')
-rw-r--r-- | drivers/dma/dmaengine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 49243d14b894..a41d1ea10fa3 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c | |||
@@ -920,6 +920,7 @@ void dma_async_tx_descriptor_init(struct dma_async_tx_descriptor *tx, | |||
920 | { | 920 | { |
921 | tx->chan = chan; | 921 | tx->chan = chan; |
922 | spin_lock_init(&tx->lock); | 922 | spin_lock_init(&tx->lock); |
923 | INIT_LIST_HEAD(&tx->tx_list); | ||
923 | } | 924 | } |
924 | EXPORT_SYMBOL(dma_async_tx_descriptor_init); | 925 | EXPORT_SYMBOL(dma_async_tx_descriptor_init); |
925 | 926 | ||