diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2014-03-03 11:19:56 +0100 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2014-03-03 11:19:56 +0100 |
| commit | 05999ed86d55ca51a9371b0253cdabd734539d1f (patch) | |
| tree | 5c14017db79cba09bd6cb5d09294e0954ba83fe2 | |
| parent | 506b8718fc1d3d71b0ea060145d797924c5d0ef9 (diff) | |
| download | rockbox-05999ed86d55ca51a9371b0253cdabd734539d1f.zip rockbox-05999ed86d55ca51a9371b0253cdabd734539d1f.tar.gz rockbox-05999ed86d55ca51a9371b0253cdabd734539d1f.tar.bz2 rockbox-05999ed86d55ca51a9371b0253cdabd734539d1f.tar.xz | |
Fix hostfs_init() return value.
Change-Id: Ic8048e3fa0075de234e8879ba9faad101168bf09
| -rw-r--r-- | firmware/export/hostfs.h | 2 | ||||
| -rw-r--r-- | firmware/target/hosted/android/system-android.c | 3 | ||||
| -rw-r--r-- | firmware/target/hosted/samsungypr/ypr0/system-ypr0.c | 3 | ||||
| -rw-r--r-- | firmware/target/hosted/samsungypr/ypr1/system-ypr1.c | 3 | ||||
| -rw-r--r-- | firmware/target/hosted/sdl/system-sdl.c | 3 |
5 files changed, 9 insertions, 5 deletions
diff --git a/firmware/export/hostfs.h b/firmware/export/hostfs.h index d6f571a..bbadece 100644 --- a/firmware/export/hostfs.h +++ b/firmware/export/hostfs.h @@ -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 diff --git a/firmware/target/hosted/android/system-android.c b/firmware/target/hosted/android/system-android.c index 313bfbc..d13b8d6 100644 --- a/firmware/target/hosted/android/system-android.c +++ b/firmware/target/hosted/android/system-android.c @@ -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) diff --git a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c index e36fbed..a21c82b 100644 --- a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c +++ b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c @@ -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) diff --git a/firmware/target/hosted/samsungypr/ypr1/system-ypr1.c b/firmware/target/hosted/samsungypr/ypr1/system-ypr1.c index 7efa73b..6b7d74b 100644 --- a/firmware/target/hosted/samsungypr/ypr1/system-ypr1.c +++ b/firmware/target/hosted/samsungypr/ypr1/system-ypr1.c @@ -68,9 +68,10 @@ void system_exception_wait(void) system_reboot(); } -void hostfs_init() +int hostfs_init() { /* stub */ + return 0; } int hostfs_flush(void) diff --git a/firmware/target/hosted/sdl/system-sdl.c b/firmware/target/hosted/sdl/system-sdl.c index 25e77c2..fdf79d9 100644 --- a/firmware/target/hosted/sdl/system-sdl.c +++ b/firmware/target/hosted/sdl/system-sdl.c @@ -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 |