diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2014-02-24 12:21:13 +0100 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2014-02-24 12:21:30 +0100 |
| commit | 3a3d26eee223f5d7307b9ab31d0dee93c82a41f5 (patch) | |
| tree | f70668e5998c10c3816999b40da6170d2211aba4 | |
| parent | be967515acae6da77b5d550520fc7c2a39a61e2f (diff) | |
| download | rockbox-3a3d26eee223f5d7307b9ab31d0dee93c82a41f5.zip rockbox-3a3d26eee223f5d7307b9ab31d0dee93c82a41f5.tar.gz rockbox-3a3d26eee223f5d7307b9ab31d0dee93c82a41f5.tar.bz2 rockbox-3a3d26eee223f5d7307b9ab31d0dee93c82a41f5.tar.xz | |
ypr0: Make it build without HAVE_MULTIDRIVE again.
Change-Id: I973f1b23497ba9c0ddb24cd36c24d0ce3ca06d06
| -rw-r--r-- | firmware/target/hosted/samsungypr/ypr0/system-ypr0.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c index 893c710..e36fbed 100644 --- a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c +++ b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c @@ -71,6 +71,7 @@ void system_exception_wait(void) system_reboot(); } +#ifdef HAVE_MULTIDRIVE /* MicroSD card removal / insertion management */ bool hostfs_removable(IF_MD_NONVOID(int drive)) @@ -209,17 +210,21 @@ static void NORETURN_ATTR sd_thread(void) #endif +#endif /* HAVE_MULTIDRIVE */ + void 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); gpio_control(DEV_CTRL_GPIO_SET_INPUT, GPIO_SD_SENSE, CONFIG_DEFAULT, 0); +#ifdef HAVE_MULTIDRIVE if (storage_present(IF_MD(1))) mount_sd(); #ifdef HAVE_HOTSWAP create_thread(sd_thread, sd_thread_stack, sizeof(sd_thread_stack), 0, "sd thread" IF_PRIO(, PRIORITY_BACKGROUND) IF_COP(, CPU)); #endif +#endif } int hostfs_flush(void) |