forked from len0rd/rockbox
Fix hostfs_init() return value.
Change-Id: Ic8048e3fa0075de234e8879ba9faad101168bf09
This commit is contained in:
parent
506b8718fc
commit
05999ed86d
5 changed files with 9 additions and 5 deletions
|
@ -33,7 +33,7 @@
|
||||||
#endif
|
#endif
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
extern void hostfs_init(void);
|
extern int hostfs_init(void);
|
||||||
extern int hostfs_flush(void);
|
extern int hostfs_flush(void);
|
||||||
|
|
||||||
#ifdef HAVE_HOTSWAP
|
#ifdef HAVE_HOTSWAP
|
||||||
|
|
|
@ -67,9 +67,10 @@ void system_init(void)
|
||||||
telephony_init_device();
|
telephony_init_device();
|
||||||
}
|
}
|
||||||
|
|
||||||
void hostfs_init(void)
|
int hostfs_init(void)
|
||||||
{
|
{
|
||||||
/* stub */
|
/* stub */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int hostfs_flush(void)
|
int hostfs_flush(void)
|
||||||
|
|
|
@ -212,7 +212,7 @@ static void NORETURN_ATTR sd_thread(void)
|
||||||
|
|
||||||
#endif /* HAVE_MULTIDRIVE */
|
#endif /* HAVE_MULTIDRIVE */
|
||||||
|
|
||||||
void hostfs_init(void)
|
int hostfs_init(void)
|
||||||
{
|
{
|
||||||
/* Setup GPIO pin for microSD sense, copied from OF */
|
/* Setup GPIO pin for microSD sense, copied from OF */
|
||||||
gpio_control(DEV_CTRL_GPIO_SET_MUX, GPIO_SD_SENSE, CONFIG_DEFAULT, 0);
|
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));
|
"sd thread" IF_PRIO(, PRIORITY_BACKGROUND) IF_COP(, CPU));
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int hostfs_flush(void)
|
int hostfs_flush(void)
|
||||||
|
|
|
@ -68,9 +68,10 @@ void system_exception_wait(void)
|
||||||
system_reboot();
|
system_reboot();
|
||||||
}
|
}
|
||||||
|
|
||||||
void hostfs_init()
|
int hostfs_init()
|
||||||
{
|
{
|
||||||
/* stub */
|
/* stub */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int hostfs_flush(void)
|
int hostfs_flush(void)
|
||||||
|
|
|
@ -289,9 +289,10 @@ void system_exception_wait(void)
|
||||||
system_reboot();
|
system_reboot();
|
||||||
}
|
}
|
||||||
|
|
||||||
void hostfs_init(void)
|
int hostfs_init(void)
|
||||||
{
|
{
|
||||||
/* stub */
|
/* stub */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_STORAGE_FLUSH
|
#ifdef HAVE_STORAGE_FLUSH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue