diff options
author | Hongbo Zhang <hongbo.zhang@freescale.com> | 2014-04-18 04:17:44 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-05-02 12:47:42 -0400 |
commit | cf7f7a2b4b1ec2305d2ba518c69109cc110e70f8 (patch) | |
tree | f09e25690911305e8f51e319422c265a4d7a996e /drivers/dma | |
parent | dfbb85cab5f0819d0424a3637b03e7892704fa42 (diff) |
DMA: Freescale: remove the unnecessary FSL_DMA_LD_DEBUG
Some codes are calling chan_dbg with FSL_DMA_LD_DEBUG surrounded, it is really
unnecessary to use such a macro because chan_dbg is a wrapper of dev_dbg, we do
have corresponding DEBUG macro to switch on/off dev_dbg, and most of the other
codes are also calling chan_dbg directly without using FSL_DMA_LD_DEBUG.
Signed-off-by: Hongbo Zhang <hongbo.zhang@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/fsldma.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index f157c6f76b32..ec5042044d67 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c | |||
@@ -426,9 +426,7 @@ static struct fsl_desc_sw *fsl_dma_alloc_descriptor(struct fsldma_chan *chan) | |||
426 | desc->async_tx.tx_submit = fsl_dma_tx_submit; | 426 | desc->async_tx.tx_submit = fsl_dma_tx_submit; |
427 | desc->async_tx.phys = pdesc; | 427 | desc->async_tx.phys = pdesc; |
428 | 428 | ||
429 | #ifdef FSL_DMA_LD_DEBUG | ||
430 | chan_dbg(chan, "LD %p allocated\n", desc); | 429 | chan_dbg(chan, "LD %p allocated\n", desc); |
431 | #endif | ||
432 | 430 | ||
433 | return desc; | 431 | return desc; |
434 | } | 432 | } |
@@ -479,9 +477,7 @@ static void fsldma_free_desc_list(struct fsldma_chan *chan, | |||
479 | 477 | ||
480 | list_for_each_entry_safe(desc, _desc, list, node) { | 478 | list_for_each_entry_safe(desc, _desc, list, node) { |
481 | list_del(&desc->node); | 479 | list_del(&desc->node); |
482 | #ifdef FSL_DMA_LD_DEBUG | ||
483 | chan_dbg(chan, "LD %p free\n", desc); | 480 | chan_dbg(chan, "LD %p free\n", desc); |
484 | #endif | ||
485 | dma_pool_free(chan->desc_pool, desc, desc->async_tx.phys); | 481 | dma_pool_free(chan->desc_pool, desc, desc->async_tx.phys); |
486 | } | 482 | } |
487 | } | 483 | } |
@@ -493,9 +489,7 @@ static void fsldma_free_desc_list_reverse(struct fsldma_chan *chan, | |||
493 | 489 | ||
494 | list_for_each_entry_safe_reverse(desc, _desc, list, node) { | 490 | list_for_each_entry_safe_reverse(desc, _desc, list, node) { |
495 | list_del(&desc->node); | 491 | list_del(&desc->node); |
496 | #ifdef FSL_DMA_LD_DEBUG | ||
497 | chan_dbg(chan, "LD %p free\n", desc); | 492 | chan_dbg(chan, "LD %p free\n", desc); |
498 | #endif | ||
499 | dma_pool_free(chan->desc_pool, desc, desc->async_tx.phys); | 493 | dma_pool_free(chan->desc_pool, desc, desc->async_tx.phys); |
500 | } | 494 | } |
501 | } | 495 | } |
@@ -832,9 +826,7 @@ static void fsldma_cleanup_descriptor(struct fsldma_chan *chan, | |||
832 | 826 | ||
833 | /* Run the link descriptor callback function */ | 827 | /* Run the link descriptor callback function */ |
834 | if (txd->callback) { | 828 | if (txd->callback) { |
835 | #ifdef FSL_DMA_LD_DEBUG | ||
836 | chan_dbg(chan, "LD %p callback\n", desc); | 829 | chan_dbg(chan, "LD %p callback\n", desc); |
837 | #endif | ||
838 | txd->callback(txd->callback_param); | 830 | txd->callback(txd->callback_param); |
839 | } | 831 | } |
840 | 832 | ||
@@ -842,9 +834,7 @@ static void fsldma_cleanup_descriptor(struct fsldma_chan *chan, | |||
842 | dma_run_dependencies(txd); | 834 | dma_run_dependencies(txd); |
843 | 835 | ||
844 | dma_descriptor_unmap(txd); | 836 | dma_descriptor_unmap(txd); |
845 | #ifdef FSL_DMA_LD_DEBUG | ||
846 | chan_dbg(chan, "LD %p free\n", desc); | 837 | chan_dbg(chan, "LD %p free\n", desc); |
847 | #endif | ||
848 | dma_pool_free(chan->desc_pool, desc, txd->phys); | 838 | dma_pool_free(chan->desc_pool, desc, txd->phys); |
849 | } | 839 | } |
850 | 840 | ||