1
0
Fork 0
forked from len0rd/rockbox

Moved the power_init() call to main(), removed unfinished inits for the H300

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7964 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-11-18 14:55:51 +00:00
parent bd0d12c43e
commit e16ebf1a50
2 changed files with 11 additions and 5 deletions

View file

@ -187,6 +187,8 @@ void init(void)
settings_reset();
power_init();
lcd_init();
#ifdef HAVE_REMOTE_LCD
lcd_remote_init();
@ -205,7 +207,10 @@ void init(void)
#endif
#endif
#ifndef IRIVER_H300_SERIES
/* Not yet done on H300 */
i2c_init();
#endif
#ifdef HAVE_RTC
rtc_init();
@ -214,7 +219,9 @@ void init(void)
adc_init();
#ifndef IRIVER_H300_SERIES
usb_init();
#endif
backlight_init();
@ -258,6 +265,7 @@ void init(void)
panicf("ata: %d", rc);
}
#ifndef IRIVER_H300_SERIES
usb_start_monitoring();
while (usb_detect())
{ /* enter USB mode early, before trying to mount */
@ -274,7 +282,7 @@ void init(void)
break;
#endif
}
#endif
if (!mounted)
{
rc = disk_mount_all();

View file

@ -873,8 +873,6 @@ static void power_thread(void)
void powermgmt_init(void)
{
power_init();
/* init history to 0 */
memset(power_history, 0x00, sizeof(power_history));