The function sm750_enable_dma is defined in ddk750_power.c and declared
in ddk750_power.h, but it is not called anywhere in the driver.
Remove the unused definition and declaration.
This addresses the first task in the drivers/staging/sm750fb/TODO list:
"- refine the code and remove unused code".
Signed-off-by: Mohit Mishra <redacted>
---
v2: Remove double blank line flagged by checkpatch -f (Dan Carpenter).
drivers/staging/sm750fb/ddk750_power.c | 14 --------------
drivers/staging/sm750fb/ddk750_power.h | 5 -----
2 files changed, 19 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_power.c b/drivers/staging/sm750fb/ddk750_power.c
index 36fde3bcf1b7..59ded1163052 100644
--- a/drivers/staging/sm750fb/ddk750_power.c
+++ b/drivers/staging/sm750fb/ddk750_power.c
@@ -89,20 +89,6 @@ void sm750_enable_2d_engine(unsigned int enable)
sm750_set_current_gate(gate);
}
-void sm750_enable_dma(unsigned int enable)
-{
- u32 gate;
-
- /* Enable DMA Gate */
- gate = peek32(CURRENT_GATE);
- if (enable)
- gate |= CURRENT_GATE_DMA;
- else
- gate &= ~CURRENT_GATE_DMA;
-
- sm750_set_current_gate(gate);
-}
-
/*
* This function enable/disable the GPIO Engine
*/diff --git a/drivers/staging/sm750fb/ddk750_power.h b/drivers/staging/sm750fb/ddk750_power.h
index 1c4f054d7276..0c4ab2120385 100644
--- a/drivers/staging/sm750fb/ddk750_power.h
+++ b/drivers/staging/sm750fb/ddk750_power.h
@@ -23,11 +23,6 @@ void sm750_set_current_gate(unsigned int gate);
*/
void sm750_enable_2d_engine(unsigned int enable);
-/*
- * This function enable/disable the DMA Engine
- */
-void sm750_enable_dma(unsigned int enable);
-
/*
* This function enable/disable the GPIO Engine
*/
--
2.43.0