mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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
|
||||
#include "config.h"
|
||||
|
||||
extern void hostfs_init(void);
|
||||
extern int hostfs_init(void);
|
||||
extern int hostfs_flush(void);
|
||||
|
||||
#ifdef HAVE_HOTSWAP
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -68,9 +68,10 @@ void system_exception_wait(void)
|
|||
system_reboot();
|
||||
}
|
||||
|
||||
void hostfs_init()
|
||||
int hostfs_init()
|
||||
{
|
||||
/* stub */
|
||||
return 0;
|
||||
}
|
||||
|
||||
int hostfs_flush(void)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue