staging: sm750fb: remove unused set_all_eng_off field
PATCH 1/1 staging: sm750fb: remove unused set_all_eng_off field
The set_all_eng_off field is only initialized to 0 and is never set by any caller.
Remove the unused field together with the dead cleanup path guarded by it.
No functional change intended.
Signed-off-by Hungyu Lin <[email protected]>
--- drivers/staging/sm750fb/ddk750_chip.c | 27 --------------------------- drivers/staging/sm750fb/ddk750_chip.h | 7 ------- drivers/staging/sm750fb/sm750.c | 1 - 3 files changed, 35 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +0 -27
@@ -263,33 +263,6 @@ int ddk750_init_hw(struct initchip_param *p_init_param)poke32 (MISC_CTRL , reg); } -if (p_init_param->set_all_eng_off ==1 ) { -sm750_enable_2d_engine (0 ); - -/* Disable Overlay, if a former application left it on */ - reg =peek32 (VIDEO_DISPLAY_CTRL ); - reg &= ~DISPLAY_CTRL_PLANE ; -poke32 (VIDEO_DISPLAY_CTRL , reg); - -/* Disable video alpha, if a former application left it on */ - reg =peek32 (VIDEO_ALPHA_DISPLAY_CTRL ); - reg &= ~DISPLAY_CTRL_PLANE ; -poke32 (VIDEO_ALPHA_DISPLAY_CTRL , reg); - -/* Disable alpha plane, if a former application left it on */ - reg =peek32 (ALPHA_DISPLAY_CTRL ); - reg &= ~DISPLAY_CTRL_PLANE ; -poke32 (ALPHA_DISPLAY_CTRL , reg); - -/* Disable DMA Channel, if a former application left it on */ - reg =peek32 (DMA_ABORT_INTERRUPT ); - reg |=DMA_ABORT_INTERRUPT_ABORT_1 ; -poke32 (DMA_ABORT_INTERRUPT , reg); - -/* Disable DMA Power, if a former application left it on */ -sm750_enable_dma (0 ); - } -/* We can add more initialization as needed. */ return 0 ;
drivers/staging/sm750fb/ddk750_chip.h +0 -7
@@ -76,13 +76,6 @@ struct initchip_param {*/ unsigned short master_clock; -/* -* 0 = leave all engine state untouched. -* 1 = make sure they are off: 2D, Overlay, -* video alpha, alpha, hardware cursors -*/ -unsigned short set_all_eng_off; -/* * 0 = Do not reset the memory controller * 1 = Reset the memory controller
drivers/staging/sm750fb/sm750.c +0 -1
@@ -837,7 +837,6 @@ static void sm750fb_setup(struct sm750_dev *sm750_dev, char *src) sm750_dev->init_parm.mem_clock =0 ; sm750_dev->init_parm.master_clock =0 ; sm750_dev->init_parm.power_mode =0 ; - sm750_dev->init_parm.set_all_eng_off =0 ; sm750_dev->init_parm.reset_memory =1 ;/* defaultly turn g_hwcursor on for both view */
Signature · 1 line
2.43.0