summaryrefslogtreecommitdiffstats
path: root/bootloader/ipod.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-11-21 21:28:46 +0000
committerJens Arnold <amiconn@rockbox.org>2007-11-21 21:28:46 +0000
commitafd5174eaf4a29a5eb53ce3e6a10834cec3add14 (patch)
tree01cf1738a48aa190ead9d80ce6f42c3be63aa5c3 /bootloader/ipod.c
parentd87b037efe7d001902c0cde992e1633ff9f70061 (diff)
downloadrockbox-afd5174eaf4a29a5eb53ce3e6a10834cec3add14.tar.gz
rockbox-afd5174eaf4a29a5eb53ce3e6a10834cec3add14.tar.bz2
rockbox-afd5174eaf4a29a5eb53ce3e6a10834cec3add14.zip
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
Diffstat (limited to 'bootloader/ipod.c')
-rw-r--r--bootloader/ipod.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bootloader/ipod.c b/bootloader/ipod.c
index 816f13adde..b3ff7bcedb 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 @@ void* main(void)
reset the settings in rockbox. */
button_was_held = button_hold();
+ system_init();
+ kernel_init();
+
#ifndef HAVE_BACKLIGHT_INVERSION
- /* Turn on the backlight */
- _backlight_on();
+ backlight_init(); /* Turns on the backlight */
#endif
- system_init();
- kernel_init();
lcd_init();
font_init();