From: David Brownell <[email protected]>

Mr. Grep reports that the EDMA chain/unchain calls are unused.
Same in the old 2.6.10 code; there seems to be no value in
those routines.  Delete!  Saves a few bytes.

Signed-off-by: David Brownell <[email protected]>
---
CHANGES since first version:  restore pause/resume

 arch/arm/mach-davinci/dma.c               |   39 ----------------------------
 arch/arm/mach-davinci/include/mach/edma.h |   22 ---------------
 2 files changed, 61 deletions(-)

--- a/arch/arm/mach-davinci/dma.c
+++ b/arch/arm/mach-davinci/dma.c
@@ -1126,45 +1126,6 @@ EXPORT_SYMBOL(davinci_dma_unlink_lch);
 
 /******************************************************************************
  *
- * DMA channel chain - chains the two logical channels passed through by
- * ARGUMENTS:
- * lch - logical channel number, where the tcc field is to be set
- * lch_que - logical channel number or the param entry number, which is to be
- *             chained to lch
- *
- *****************************************************************************/
-void davinci_dma_chain_lch(int lch, int lch_que)
-{
-       if ((lch >= 0) && (lch < DAVINCI_EDMA_NUM_DMACH) &&
-           (lch_que >= 0) && (lch_que < DAVINCI_EDMA_NUM_DMACH)) {
-               /* program tcc */
-               edma_parm_modify(PARM_OPT, lch, ~TCC,
-                               ((lch_que & 0x3f) << 12) | TCCHEN);
-       }
-}
-EXPORT_SYMBOL(davinci_dma_chain_lch);
-
-/******************************************************************************
- *
- * DMA channel unchain - unchain the two logical channels passed through by
- * ARGUMENTS:
- * lch - logical channel number, from which the tcc field is to be removed
- * lch_que - logical channel number or the param entry number, which is to be
- *             unchained from lch
- *
- *****************************************************************************/
-void davinci_dma_unchain_lch(int lch, int lch_que)
-{
-       /* reset TCCHEN */
-       if ((lch >= 0) && (lch < DAVINCI_EDMA_NUM_DMACH) &&
-           (lch_que >= 0) && (lch_que < DAVINCI_EDMA_NUM_DMACH)) {
-               edma_parm_and(PARM_OPT, lch, ~TCCHEN);
-       }
-}
-EXPORT_SYMBOL(davinci_dma_unchain_lch);
-
-/******************************************************************************
- *
  * It cleans ParamEntry qand bring back EDMA to initial state if media has
  * been removed before EDMA has finished.It is usedful for removable media.
  * Arguments:
--- a/arch/arm/mach-davinci/include/mach/edma.h
+++ b/arch/arm/mach-davinci/include/mach/edma.h
@@ -245,28 +245,6 @@ void davinci_dma_link_lch(int lch_head, 
  *****************************************************************************/
 void davinci_dma_unlink_lch(int lch_head, int lch_queue);
 
-/******************************************************************************
- *
- * DMA channel chain - chains the two logical channels passed through by
- * ARGUMENTS:
- * lch_head - logical channel number, from which the link field is to be 
removed
- * lch_queue - logical channel number or the param entry number, which is to be
- *             unlinked from lch_head
- *
- *****************************************************************************/
-void davinci_dma_chain_lch(int lch_head, int lch_queue);
-
-/******************************************************************************
- *
- * DMA channel unchain - unchain the two logical channels passed through by
- * ARGUMENTS:
- * lch_head - logical channel number, from which the link field is to be 
removed
- * lch_queue - logical channel number or the param entry number, which is to be
- *             unlinked from lch_head
- *
- *****************************************************************************/
-void davinci_dma_unchain_lch(int lch_head, int lch_queue);
-
 void davinci_dma_getposition(int lch, dma_addr_t *src, dma_addr_t *dst);
 void davinci_clean_channel(int lch);
 void davinci_pause_dma(int lch);

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to