mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 04:46:30 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0d0c71cb9c
commit
da4fa4e7ae
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user