dmaengine: sun4i: set the linear_mode properly
authorVinod Koul <vkoul@kernel.org>
Fri, 14 Feb 2020 04:46:09 +0000 (10:16 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 17 Feb 2020 06:51:08 +0000 (12:21 +0530)
commit8faa77332fe01a681ef3097581a37b82adc1c14b
tree7e15105c6a04ab9b48f24c60b826b420ff3ea869
parentacd624185d204b0ae2360b4648cc50802df5da01
dmaengine: sun4i: set the linear_mode properly

Commit 6ebb827f7aad ("dmaengine: sun4i: use 'linear_mode' in
sun4i_dma_prep_dma_cyclic") updated the condition but introduced a semi
colon this making this statement have no effect, so add the bitwise OR
to fix it"

Fixes: 6ebb827f7aad ("dmaengine: sun4i: use 'linear_mode' in sun4i_dma_prep_dma_cyclic")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20200214044609.2215861-1-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sun4i-dma.c