diff options
| -rw-r--r-- | drivers/dma/mv_xor.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index fbaf1ead2597..f1325f62563e 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c | |||
| @@ -162,10 +162,11 @@ static void mv_chan_set_mode(struct mv_xor_chan *chan, | |||
| 162 | config &= ~0x7; | 162 | config &= ~0x7; |
| 163 | config |= op_mode; | 163 | config |= op_mode; |
| 164 | 164 | ||
| 165 | if (IS_ENABLED(__BIG_ENDIAN)) | 165 | #if defined(__BIG_ENDIAN) |
| 166 | config |= XOR_DESCRIPTOR_SWAP; | 166 | config |= XOR_DESCRIPTOR_SWAP; |
| 167 | else | 167 | #else |
| 168 | config &= ~XOR_DESCRIPTOR_SWAP; | 168 | config &= ~XOR_DESCRIPTOR_SWAP; |
| 169 | #endif | ||
| 169 | 170 | ||
| 170 | writel_relaxed(config, XOR_CONFIG(chan)); | 171 | writel_relaxed(config, XOR_CONFIG(chan)); |
| 171 | chan->current_type = type; | 172 | chan->current_type = type; |
