Fix iPod Nano & Video bootloaders. Backlight uses sleep(), hence it must be initialised after kernel_init().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15743 a1c6a512-1295-4272-9138-f99709370657
diff --git a/bootloader/ipod.c b/bootloader/ipod.c
index 816f13a..b3ff7bc 100644
--- a/bootloader/ipod.c
+++ b/bootloader/ipod.c
@@ -35,7 +35,7 @@
#include "disk.h"
#include "font.h"
#include "adc.h"
-#include "backlight-target.h"
+#include "backlight.h"
#include "panic.h"
#include "power.h"
#include "file.h"
@@ -237,13 +237,13 @@
reset the settings in rockbox. */
button_was_held = button_hold();
-#ifndef HAVE_BACKLIGHT_INVERSION
- /* Turn on the backlight */
- _backlight_on();
-#endif
-
system_init();
kernel_init();
+
+#ifndef HAVE_BACKLIGHT_INVERSION
+ backlight_init(); /* Turns on the backlight */
+#endif
+
lcd_init();
font_init();