From 4ed387d60313ac79fa7ac8b403bf3195f7c0c549 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 17 Mar 2009 03:36:36 +0000 Subject: Fix reds and yellows (hopefully). Some targets apparently didn't properly #ifdef lcd_enable and lcd_sleep code out, so that it got partly active in the bootloader; rename the ui simulator stub fixes most reds; for the clip: move the hook code into lcd-1bit-vert.c which should fix the bootloader red. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20333 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'firmware/target/arm/as3525/sansa-clip') diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c index 640f6694c9..0689779af0 100644 --- a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c +++ b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c @@ -160,22 +160,6 @@ void lcd_set_flip(bool yesno) } #ifdef HAVE_LCD_ENABLE -static void (*lcd_activation_hook)(void) = NULL; - -void lcd_activation_set_hook(void (*func)(void)) -{ - lcd_activation_hook = func; -} - -void lcd_activation_call_hook(void) -{ - void (*func)(void) = lcd_activation_hook; - - if (func != NULL) - func(); -} - - void lcd_enable(bool enable) { if(display_on == enable) -- cgit v1.2.3