Commit fbc39226 authored by David Brownell's avatar David Brownell Committed by Kevin Hilman

EDMA: remove unused calls

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 0d1dbdb6
...@@ -1124,45 +1124,6 @@ void davinci_dma_unlink_lch(int lch, int lch_que) ...@@ -1124,45 +1124,6 @@ void davinci_dma_unlink_lch(int lch, int lch_que)
} }
EXPORT_SYMBOL(davinci_dma_unlink_lch); 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 * It cleans ParamEntry qand bring back EDMA to initial state if media has
......
...@@ -245,28 +245,6 @@ void davinci_dma_link_lch(int lch_head, int lch_queue); ...@@ -245,28 +245,6 @@ void davinci_dma_link_lch(int lch_head, int lch_queue);
*****************************************************************************/ *****************************************************************************/
void davinci_dma_unlink_lch(int lch_head, int lch_queue); 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_dma_getposition(int lch, dma_addr_t *src, dma_addr_t *dst);
void davinci_clean_channel(int lch); void davinci_clean_channel(int lch);
void davinci_pause_dma(int lch); void davinci_pause_dma(int lch);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment