diff options
Diffstat (limited to 'drivers/dma/ioat/dma.h')
-rw-r--r-- | drivers/dma/ioat/dma.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h index 5216c8a92a21..9653b6b6a715 100644 --- a/drivers/dma/ioat/dma.h +++ b/drivers/dma/ioat/dma.h | |||
@@ -90,7 +90,6 @@ struct ioat_chan_common { | |||
90 | void __iomem *reg_base; | 90 | void __iomem *reg_base; |
91 | unsigned long last_completion; | 91 | unsigned long last_completion; |
92 | spinlock_t cleanup_lock; | 92 | spinlock_t cleanup_lock; |
93 | dma_cookie_t completed_cookie; | ||
94 | unsigned long state; | 93 | unsigned long state; |
95 | #define IOAT_COMPLETION_PENDING 0 | 94 | #define IOAT_COMPLETION_PENDING 0 |
96 | #define IOAT_COMPLETION_ACK 1 | 95 | #define IOAT_COMPLETION_ACK 1 |
@@ -153,12 +152,11 @@ static inline enum dma_status | |||
153 | ioat_tx_status(struct dma_chan *c, dma_cookie_t cookie, | 152 | ioat_tx_status(struct dma_chan *c, dma_cookie_t cookie, |
154 | struct dma_tx_state *txstate) | 153 | struct dma_tx_state *txstate) |
155 | { | 154 | { |
156 | struct ioat_chan_common *chan = to_chan_common(c); | ||
157 | dma_cookie_t last_used; | 155 | dma_cookie_t last_used; |
158 | dma_cookie_t last_complete; | 156 | dma_cookie_t last_complete; |
159 | 157 | ||
160 | last_used = c->cookie; | 158 | last_used = c->cookie; |
161 | last_complete = chan->completed_cookie; | 159 | last_complete = c->completed_cookie; |
162 | 160 | ||
163 | dma_set_tx_state(txstate, last_complete, last_used, 0); | 161 | dma_set_tx_state(txstate, last_complete, last_used, 0); |
164 | 162 | ||