fbdev/sa1100fb: Remove even more dead code
PATCH 1/1 fbdev/sa1100fb: Remove even more dead code
This function lost its only call site as part of
earlier dead code removal, so remove it as well:
drivers/video/fbdev/sa1100fb.c:975:21: error: unused function 'sa1100fb_min_dma_period' [-Werror,-Wunused-function]
Fixes 390e5de11284 ("fbdev/sa1100fb: Remove dead code")
Signed-off-by Arnd Bergmann <[email protected]>
--- drivers/video/fbdev/sa1100fb.c | 13 ------------- 1 file changed, 13 deletions(-)
drivers/video/fbdev/sa1100fb.c +0 -13
@@ -967,19 +967,6 @@ static void sa1100fb_task(struct work_struct *w) }#ifdef CONFIG_CPU_FREQ -/* -* Calculate the minimum DMA period over all displays that we own. -* This, together with the SDRAM bandwidth defines the slowest CPU -* frequency that can be selected. -*/ -static unsigned int sa1100fb_min_dma_period (struct sa1100fb_info *fbi) -{ -/* -* FIXME: we need to verify _all_ consoles. -*/ -return sa1100fb_display_dma_period (&fbi->fb.var); -} -/* * CPU clock speed change handler. We need to adjust the LCD timing * parameters when the CPU clock is adjusted by the power management
Signature · 1 line
2.20.0
Quoted 7 lines · Arnd Bergmann
This function lost its only call site as part of
earlier dead code removal, so remove it as well:
drivers/video/fbdev/sa1100fb.c:975:21: error: unused function 'sa1100fb_min_dma_period' [-Werror,-Wunused-function]Fixes 390e5de11284 ("fbdev/sa1100fb: Remove dead code")Signed-off-by Arnd Bergmann <[email protected]>
Queud for 5.5 in drm-misc-next since Bart is away from merge duties until end of this month.
-Daniel
Quoted 31 lines
--- drivers/video/fbdev/sa1100fb.c | 13 ------------- 1 file changed, 13 deletions(-)drivers/video/fbdev/sa1100fb.c +0
-13@@ -967,19 +967,6 @@ static void sa1100fb_task(struct work_struct *w) }#ifdef CONFIG_CPU_FREQ -/* -* Calculate the minimum DMA period over all displays that we own. -* This, together with the SDRAM bandwidth defines the slowest CPU -* frequency that can be selected. -*/ -static unsigned int sa1100fb_min_dma_period (struct sa1100fb_info *fbi) -{ -/* -* FIXME: we need to verify _all_ consoles. -*/ -return sa1100fb_display_dma_period (&fbi->fb.var); -} -/* * CPU clock speed change handler. We need to adjust the LCD timing * parameters when the CPU clock is adjusted by the power management Signature · 1 line
2.20.0
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch