]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: zx: fix build warning
authorJun Nie <jun.nie@linaro.org>
Tue, 10 Jan 2017 09:23:40 +0000 (17:23 +0800)
committerVinod Koul <vinod.koul@intel.com>
Wed, 25 Jan 2017 10:03:45 +0000 (15:33 +0530)
commit388360fca3273dfc8d45b28e2afb7ad93e1796e2
tree20992db4aa1cdceb72a8c7d12fa8513f1eef1d10
parent829c12b711364bbd5f14d4bc11d838fe1cd38da1
dmaengine: zx: fix build warning

Fix build warning that related to PAGE_SIZE. The maximum DMA
length has nothing to do with PAGE_SIZE, just use a fix number
for the definition.

drivers/dma/zx_dma.c: In function 'zx_dma_prep_memcpy':
drivers/dma/zx_dma.c:523:8: warning: division by zero [-Wdiv-by-zero]
drivers/dma/zx_dma.c: In function 'zx_dma_prep_slave_sg':
drivers/dma/zx_dma.c:567:11: warning: division by zero [-Wdiv-by-zero]

Signed-off-by: Jun Nie <jun.nie@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/zx_dma.c