aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/sun4i-dma.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/dma/sun4i-dma.c b/drivers/dma/sun4i-dma.c
index e0df233dde92..57aa227bfadb 100644
--- a/drivers/dma/sun4i-dma.c
+++ b/drivers/dma/sun4i-dma.c
@@ -461,25 +461,25 @@ generate_ndma_promise(struct dma_chan *chan, dma_addr_t src, dma_addr_t dest,
461 461
462 /* Source burst */ 462 /* Source burst */
463 ret = convert_burst(sconfig->src_maxburst); 463 ret = convert_burst(sconfig->src_maxburst);
464 if (IS_ERR_VALUE(ret)) 464 if (ret < 0)
465 goto fail; 465 goto fail;
466 promise->cfg |= SUN4I_DMA_CFG_SRC_BURST_LENGTH(ret); 466 promise->cfg |= SUN4I_DMA_CFG_SRC_BURST_LENGTH(ret);
467 467
468 /* Destination burst */ 468 /* Destination burst */
469 ret = convert_burst(sconfig->dst_maxburst); 469 ret = convert_burst(sconfig->dst_maxburst);
470 if (IS_ERR_VALUE(ret)) 470 if (ret < 0)
471 goto fail; 471 goto fail;
472 promise->cfg |= SUN4I_DMA_CFG_DST_BURST_LENGTH(ret); 472 promise->cfg |= SUN4I_DMA_CFG_DST_BURST_LENGTH(ret);
473 473
474 /* Source bus width */ 474 /* Source bus width */
475 ret = convert_buswidth(sconfig->src_addr_width); 475 ret = convert_buswidth(sconfig->src_addr_width);
476 if (IS_ERR_VALUE(ret)) 476 if (ret < 0)
477 goto fail; 477 goto fail;
478 promise->cfg |= SUN4I_DMA_CFG_SRC_DATA_WIDTH(ret); 478 promise->cfg |= SUN4I_DMA_CFG_SRC_DATA_WIDTH(ret);
479 479
480 /* Destination bus width */ 480 /* Destination bus width */
481 ret = convert_buswidth(sconfig->dst_addr_width); 481 ret = convert_buswidth(sconfig->dst_addr_width);
482 if (IS_ERR_VALUE(ret)) 482 if (ret < 0)
483 goto fail; 483 goto fail;
484 promise->cfg |= SUN4I_DMA_CFG_DST_DATA_WIDTH(ret); 484 promise->cfg |= SUN4I_DMA_CFG_DST_DATA_WIDTH(ret);
485 485
@@ -518,25 +518,25 @@ generate_ddma_promise(struct dma_chan *chan, dma_addr_t src, dma_addr_t dest,
518 518
519 /* Source burst */ 519 /* Source burst */
520 ret = convert_burst(sconfig->src_maxburst); 520 ret = convert_burst(sconfig->src_maxburst);
521 if (IS_ERR_VALUE(ret)) 521 if (ret < 0)
522 goto fail; 522 goto fail;
523 promise->cfg |= SUN4I_DMA_CFG_SRC_BURST_LENGTH(ret); 523 promise->cfg |= SUN4I_DMA_CFG_SRC_BURST_LENGTH(ret);
524 524
525 /* Destination burst */ 525 /* Destination burst */
526 ret = convert_burst(sconfig->dst_maxburst); 526 ret = convert_burst(sconfig->dst_maxburst);
527 if (IS_ERR_VALUE(ret)) 527 if (ret < 0)
528 goto fail; 528 goto fail;
529 promise->cfg |= SUN4I_DMA_CFG_DST_BURST_LENGTH(ret); 529 promise->cfg |= SUN4I_DMA_CFG_DST_BURST_LENGTH(ret);
530 530
531 /* Source bus width */ 531 /* Source bus width */
532 ret = convert_buswidth(sconfig->src_addr_width); 532 ret = convert_buswidth(sconfig->src_addr_width);
533 if (IS_ERR_VALUE(ret)) 533 if (ret < 0)
534 goto fail; 534 goto fail;
535 promise->cfg |= SUN4I_DMA_CFG_SRC_DATA_WIDTH(ret); 535 promise->cfg |= SUN4I_DMA_CFG_SRC_DATA_WIDTH(ret);
536 536
537 /* Destination bus width */ 537 /* Destination bus width */
538 ret = convert_buswidth(sconfig->dst_addr_width); 538 ret = convert_buswidth(sconfig->dst_addr_width);
539 if (IS_ERR_VALUE(ret)) 539 if (ret < 0)
540 goto fail; 540 goto fail;
541 promise->cfg |= SUN4I_DMA_CFG_DST_DATA_WIDTH(ret); 541 promise->cfg |= SUN4I_DMA_CFG_DST_DATA_WIDTH(ret);
542 542