From 3a3d26eee223f5d7307b9ab31d0dee93c82a41f5 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 24 Feb 2014 12:21:13 +0100 Subject: ypr0: Make it build without HAVE_MULTIDRIVE again. Change-Id: I973f1b23497ba9c0ddb24cd36c24d0ce3ca06d06 --- firmware/target/hosted/samsungypr/ypr0/system-ypr0.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c index 893c710861..e36fbed145 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) -- cgit v1.2.3