diff options
| -rw-r--r-- | drivers/dma/virt-dma.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/virt-dma.h b/drivers/dma/virt-dma.h index 85c19d63f9fb..181b95267866 100644 --- a/drivers/dma/virt-dma.h +++ b/drivers/dma/virt-dma.h | |||
| @@ -84,10 +84,12 @@ static inline bool vchan_issue_pending(struct virt_dma_chan *vc) | |||
| 84 | static inline void vchan_cookie_complete(struct virt_dma_desc *vd) | 84 | static inline void vchan_cookie_complete(struct virt_dma_desc *vd) |
| 85 | { | 85 | { |
| 86 | struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan); | 86 | struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan); |
| 87 | dma_cookie_t cookie; | ||
| 87 | 88 | ||
| 89 | cookie = vd->tx.cookie; | ||
| 88 | dma_cookie_complete(&vd->tx); | 90 | dma_cookie_complete(&vd->tx); |
| 89 | dev_vdbg(vc->chan.device->dev, "txd %p[%x]: marked complete\n", | 91 | dev_vdbg(vc->chan.device->dev, "txd %p[%x]: marked complete\n", |
| 90 | vd, vd->tx.cookie); | 92 | vd, cookie); |
| 91 | list_add_tail(&vd->node, &vc->desc_completed); | 93 | list_add_tail(&vd->node, &vc->desc_completed); |
| 92 | 94 | ||
| 93 | tasklet_schedule(&vc->task); | 95 | tasklet_schedule(&vc->task); |
