diff options
Diffstat (limited to 'drivers/dma/at_hdmac.c')
-rw-r--r-- | drivers/dma/at_hdmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index 8a3297418cf0..5d225ddc7698 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c | |||
@@ -1103,7 +1103,7 @@ static int atc_alloc_chan_resources(struct dma_chan *chan) | |||
1103 | spin_lock_irqsave(&atchan->lock, flags); | 1103 | spin_lock_irqsave(&atchan->lock, flags); |
1104 | atchan->descs_allocated = i; | 1104 | atchan->descs_allocated = i; |
1105 | list_splice(&tmp_list, &atchan->free_list); | 1105 | list_splice(&tmp_list, &atchan->free_list); |
1106 | chan->completed_cookie = chan->cookie = 1; | 1106 | dma_cookie_init(chan); |
1107 | spin_unlock_irqrestore(&atchan->lock, flags); | 1107 | spin_unlock_irqrestore(&atchan->lock, flags); |
1108 | 1108 | ||
1109 | /* channel parameters */ | 1109 | /* channel parameters */ |
@@ -1303,7 +1303,7 @@ static int __init at_dma_probe(struct platform_device *pdev) | |||
1303 | struct at_dma_chan *atchan = &atdma->chan[i]; | 1303 | struct at_dma_chan *atchan = &atdma->chan[i]; |
1304 | 1304 | ||
1305 | atchan->chan_common.device = &atdma->dma_common; | 1305 | atchan->chan_common.device = &atdma->dma_common; |
1306 | atchan->chan_common.cookie = atchan->chan_common.completed_cookie = 1; | 1306 | dma_cookie_init(&atchan->chan_common); |
1307 | list_add_tail(&atchan->chan_common.device_node, | 1307 | list_add_tail(&atchan->chan_common.device_node, |
1308 | &atdma->dma_common.channels); | 1308 | &atdma->dma_common.channels); |
1309 | 1309 | ||