diff options
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r-- | drivers/dma/mv_xor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index 536dcb8ba5fd..8d5bce9e867e 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c | |||
@@ -749,7 +749,7 @@ static enum dma_status mv_xor_status(struct dma_chan *chan, | |||
749 | enum dma_status ret; | 749 | enum dma_status ret; |
750 | 750 | ||
751 | ret = dma_cookie_status(chan, cookie, txstate); | 751 | ret = dma_cookie_status(chan, cookie, txstate); |
752 | if (ret == DMA_SUCCESS) { | 752 | if (ret == DMA_COMPLETE) { |
753 | mv_xor_clean_completed_slots(mv_chan); | 753 | mv_xor_clean_completed_slots(mv_chan); |
754 | return ret; | 754 | return ret; |
755 | } | 755 | } |
@@ -874,7 +874,7 @@ static int mv_xor_memcpy_self_test(struct mv_xor_chan *mv_chan) | |||
874 | msleep(1); | 874 | msleep(1); |
875 | 875 | ||
876 | if (mv_xor_status(dma_chan, cookie, NULL) != | 876 | if (mv_xor_status(dma_chan, cookie, NULL) != |
877 | DMA_SUCCESS) { | 877 | DMA_COMPLETE) { |
878 | dev_err(dma_chan->device->dev, | 878 | dev_err(dma_chan->device->dev, |
879 | "Self-test copy timed out, disabling\n"); | 879 | "Self-test copy timed out, disabling\n"); |
880 | err = -ENODEV; | 880 | err = -ENODEV; |
@@ -968,7 +968,7 @@ mv_xor_xor_self_test(struct mv_xor_chan *mv_chan) | |||
968 | msleep(8); | 968 | msleep(8); |
969 | 969 | ||
970 | if (mv_xor_status(dma_chan, cookie, NULL) != | 970 | if (mv_xor_status(dma_chan, cookie, NULL) != |
971 | DMA_SUCCESS) { | 971 | DMA_COMPLETE) { |
972 | dev_err(dma_chan->device->dev, | 972 | dev_err(dma_chan->device->dev, |
973 | "Self-test xor timed out, disabling\n"); | 973 | "Self-test xor timed out, disabling\n"); |
974 | err = -ENODEV; | 974 | err = -ENODEV; |