diff options
| author | Jun Nie <jun.nie@linaro.org> | 2017-01-10 04:23:40 -0500 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2017-01-25 05:03:45 -0500 |
| commit | 067fdeb2f391bfa071f741a2b3eb74b8ff3785cd (patch) | |
| tree | 20992db4aa1cdceb72a8c7d12fa8513f1eef1d10 | |
| parent | 156ae09245c4c49c8eb4a0898411ee260966331d (diff) | |
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>
| -rw-r--r-- | drivers/dma/zx_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/zx_dma.c b/drivers/dma/zx_dma.c index 42ff3e66c1e1..2bb695315300 100644 --- a/drivers/dma/zx_dma.c +++ b/drivers/dma/zx_dma.c | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | #define DRIVER_NAME "zx-dma" | 27 | #define DRIVER_NAME "zx-dma" |
| 28 | #define DMA_ALIGN 4 | 28 | #define DMA_ALIGN 4 |
| 29 | #define DMA_MAX_SIZE (0x10000 - PAGE_SIZE) | 29 | #define DMA_MAX_SIZE (0x10000 - 512) |
| 30 | #define LLI_BLOCK_SIZE (4 * PAGE_SIZE) | 30 | #define LLI_BLOCK_SIZE (4 * PAGE_SIZE) |
| 31 | 31 | ||
| 32 | #define REG_ZX_SRC_ADDR 0x00 | 32 | #define REG_ZX_SRC_ADDR 0x00 |
