summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-03-03 11:19:56 +0100
committerThomas Martitz <kugel@rockbox.org>2014-03-03 11:19:56 +0100
commit05999ed86d55ca51a9371b0253cdabd734539d1f (patch)
tree5c14017db79cba09bd6cb5d09294e0954ba83fe2
parent506b8718fc1d3d71b0ea060145d797924c5d0ef9 (diff)
downloadrockbox-05999ed86d55ca51a9371b0253cdabd734539d1f.tar.gz
rockbox-05999ed86d55ca51a9371b0253cdabd734539d1f.zip
Fix hostfs_init() return value.
Change-Id: Ic8048e3fa0075de234e8879ba9faad101168bf09
-rw-r--r--firmware/export/hostfs.h2
-rw-r--r--firmware/target/hosted/android/system-android.c3
-rw-r--r--firmware/target/hosted/samsungypr/ypr0/system-ypr0.c3
-rw-r--r--firmware/target/hosted/samsungypr/ypr1/system-ypr1.c3
-rw-r--r--firmware/target/hosted/sdl/system-sdl.c3
5 files changed, 9 insertions, 5 deletions
diff --git a/firmware/export/hostfs.h b/firmware/export/hostfs.h
index d6f571a929..bbadecec31 100644
--- a/firmware/export/hostfs.h
+++ b/firmware/export/hostfs.h
@@ -33,7 +33,7 @@
33#endif 33#endif
34#include "config.h" 34#include "config.h"
35 35
36extern void hostfs_init(void); 36extern int hostfs_init(void);
37extern int hostfs_flush(void); 37extern int hostfs_flush(void);
38 38
39#ifdef HAVE_HOTSWAP 39#ifdef HAVE_HOTSWAP
diff --git a/firmware/target/hosted/android/system-android.c b/firmware/target/hosted/android/system-android.c
index 313bfbcd62..d13b8d6462 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)
67 telephony_init_device(); 67 telephony_init_device();
68} 68}
69 69
70void hostfs_init(void) 70int hostfs_init(void)
71{ 71{
72 /* stub */ 72 /* stub */
73 return 0;
73} 74}
74 75
75int hostfs_flush(void) 76int hostfs_flush(void)
diff --git a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c
index e36fbed145..a21c82b1f2 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)
212 212
213#endif /* HAVE_MULTIDRIVE */ 213#endif /* HAVE_MULTIDRIVE */
214 214
215void hostfs_init(void) 215int hostfs_init(void)
216{ 216{
217 /* Setup GPIO pin for microSD sense, copied from OF */ 217 /* Setup GPIO pin for microSD sense, copied from OF */
218 gpio_control(DEV_CTRL_GPIO_SET_MUX, GPIO_SD_SENSE, CONFIG_DEFAULT, 0); 218 gpio_control(DEV_CTRL_GPIO_SET_MUX, GPIO_SD_SENSE, CONFIG_DEFAULT, 0);
@@ -225,6 +225,7 @@ void hostfs_init(void)
225 "sd thread" IF_PRIO(, PRIORITY_BACKGROUND) IF_COP(, CPU)); 225 "sd thread" IF_PRIO(, PRIORITY_BACKGROUND) IF_COP(, CPU));
226#endif 226#endif
227#endif 227#endif
228 return 0;
228} 229}
229 230
230int hostfs_flush(void) 231int hostfs_flush(void)
diff --git a/firmware/target/hosted/samsungypr/ypr1/system-ypr1.c b/firmware/target/hosted/samsungypr/ypr1/system-ypr1.c
index 7efa73b273..6b7d74b5f7 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)
68 system_reboot(); 68 system_reboot();
69} 69}
70 70
71void hostfs_init() 71int hostfs_init()
72{ 72{
73 /* stub */ 73 /* stub */
74 return 0;
74} 75}
75 76
76int hostfs_flush(void) 77int hostfs_flush(void)
diff --git a/firmware/target/hosted/sdl/system-sdl.c b/firmware/target/hosted/sdl/system-sdl.c
index 25e77c22a2..fdf79d9333 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)
289 system_reboot(); 289 system_reboot();
290} 290}
291 291
292void hostfs_init(void) 292int hostfs_init(void)
293{ 293{
294 /* stub */ 294 /* stub */
295 return 0;
295} 296}
296 297
297#ifdef HAVE_STORAGE_FLUSH 298#ifdef HAVE_STORAGE_FLUSH