1
0
Fork 0
forked from len0rd/rockbox

Fix hostfs_init() return value.

Change-Id: Ic8048e3fa0075de234e8879ba9faad101168bf09
This commit is contained in:
Thomas Martitz 2014-03-03 11:19:56 +01:00
parent 506b8718fc
commit 05999ed86d
5 changed files with 9 additions and 5 deletions

View file

@ -33,7 +33,7 @@
#endif
#include "config.h"
extern void hostfs_init(void);
extern int hostfs_init(void);
extern int hostfs_flush(void);
#ifdef HAVE_HOTSWAP

View file

@ -67,9 +67,10 @@ void system_init(void)
telephony_init_device();
}
void hostfs_init(void)
int hostfs_init(void)
{
/* stub */
return 0;
}
int hostfs_flush(void)

View file

@ -212,7 +212,7 @@ static void NORETURN_ATTR sd_thread(void)
#endif /* HAVE_MULTIDRIVE */
void hostfs_init(void)
int hostfs_init(void)
{
/* Setup GPIO pin for microSD sense, copied from OF */
gpio_control(DEV_CTRL_GPIO_SET_MUX, GPIO_SD_SENSE, CONFIG_DEFAULT, 0);
@ -225,6 +225,7 @@ void hostfs_init(void)
"sd thread" IF_PRIO(, PRIORITY_BACKGROUND) IF_COP(, CPU));
#endif
#endif
return 0;
}
int hostfs_flush(void)

View file

@ -68,9 +68,10 @@ void system_exception_wait(void)
system_reboot();
}
void hostfs_init()
int hostfs_init()
{
/* stub */
return 0;
}
int hostfs_flush(void)

View file

@ -289,9 +289,10 @@ void system_exception_wait(void)
system_reboot();
}
void hostfs_init(void)
int hostfs_init(void)
{
/* stub */
return 0;
}
#ifdef HAVE_STORAGE_FLUSH