diff mbox

[U-Boot,v4,1/7] arm1136: Remove dead code

Message ID 1437722535-7759-2-git-send-email-alexanders83@web.de
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Alexander Stein July 24, 2015, 7:22 a.m. UTC
Apparently lcd_panel_disable is not defined anywhere, so no config for
an arm1136 board would have set CONFIG_LCD. Remove the unused code.

Signed-off-by: Alexander Stein <alexanders83@web.de>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
---
 arch/arm/cpu/arm1136/cpu.c | 10 ----------
 1 file changed, 10 deletions(-)

Comments

Tom Rini Aug. 13, 2015, 1:19 p.m. UTC | #1
On Fri, Jul 24, 2015 at 09:22:09AM +0200, Alexander Stein wrote:

> Apparently lcd_panel_disable is not defined anywhere, so no config for
> an arm1136 board would have set CONFIG_LCD. Remove the unused code.
> 
> Signed-off-by: Alexander Stein <alexanders83@web.de>
> Acked-by: Stephen Warren <swarren@wwwdotorg.org>
> Tested-by: Stephen Warren <swarren@wwwdotorg.org>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/cpu/arm1136/cpu.c b/arch/arm/cpu/arm1136/cpu.c
index a7aed4b..5d4b3c2 100644
--- a/arch/arm/cpu/arm1136/cpu.c
+++ b/arch/arm/cpu/arm1136/cpu.c
@@ -32,16 +32,6 @@  int cleanup_before_linux (void)
 
 	disable_interrupts ();
 
-#ifdef CONFIG_LCD
-	{
-		extern void lcd_disable(void);
-		extern void lcd_panel_disable(void);
-
-		lcd_disable(); /* proper disable of lcd & panel */
-		lcd_panel_disable();
-	}
-#endif
-
 	/* turn off I/D-cache */
 	icache_disable();
 	dcache_disable();