aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMohit Mishra <mishraloopmohit@gmail.com>2026-07-25 14:37:49 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-28 09:24:50 +0200
commitda4fa4e7aec22660a7a901a44f3cbb062a6779ff (patch)
tree859fd360e8e7c39ab333c0c80d1cad5ace57cdb4
parentstaging: sm750fb: rename CamelCase parameters in sm750_accel.h (diff)
staging: sm750fb: Remove unused function sm750_enable_dma
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 <mishraloopmohit@gmail.com> Link: https://patch.msgid.link/20260725090750.113598-2-mishraloopmohit@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/sm750fb/ddk750_power.c14
-rw-r--r--drivers/staging/sm750fb/ddk750_power.h5
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/staging/sm750fb/ddk750_power.c b/drivers/staging/sm750fb/ddk750_power.c
index eaba3bc2e01a..cd63f43283f7 100644
--- a/drivers/staging/sm750fb/ddk750_power.c
+++ b/drivers/staging/sm750fb/ddk750_power.c
@@ -96,20 +96,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
@@ -24,11 +24,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
*/
void sm750_enable_gpio(unsigned int enable);