summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/fat.c2
-rw-r--r--firmware/drivers/serial.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 3130a3e2b4..90be93f4f4 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -204,7 +204,7 @@ static char fat_cache_sectors[FAT_CACHE_SIZE][SECTOR_SIZE];
204static struct fat_cache_entry fat_cache[FAT_CACHE_SIZE]; 204static struct fat_cache_entry fat_cache[FAT_CACHE_SIZE];
205static struct mutex cache_mutex SHAREDBSS_ATTR; 205static struct mutex cache_mutex SHAREDBSS_ATTR;
206 206
207#if defined(HAVE_HOTSWAP) && !defined(HAVE_MMC) /* A better condition ?? */ 207#if defined(HAVE_HOTSWAP) && !(CONFIG_STORAGE & STORAGE_MMC) /* A better condition ?? */
208void fat_lock(void) 208void fat_lock(void)
209{ 209{
210 mutex_lock(&cache_mutex); 210 mutex_lock(&cache_mutex);
diff --git a/firmware/drivers/serial.c b/firmware/drivers/serial.c
index 961974e987..47fbf564ff 100644
--- a/firmware/drivers/serial.c
+++ b/firmware/drivers/serial.c
@@ -39,7 +39,7 @@
39/* iFP7xx has no remote */ 39/* iFP7xx has no remote */
40 40
41#if !defined(HAVE_FMADC) /* Recorder FM/V2 has no remote control pin */ \ 41#if !defined(HAVE_FMADC) /* Recorder FM/V2 has no remote control pin */ \
42 && !defined(HAVE_MMC) /* MMC takes serial port 1, so don't mess with it */ 42 && !(CONFIG_STORAGE & STORAGE_MMC) /* MMC takes serial port 1, so don't mess with it */
43 43
44/* Received byte identifiers */ 44/* Received byte identifiers */
45#define PLAY 0xC1 45#define PLAY 0xC1
@@ -146,7 +146,7 @@ int remote_control_rx(void)
146 return ret; 146 return ret;
147} 147}
148 148
149#endif /* !HAVE_FMADC && !HAVE_MMC */ 149#endif /* !HAVE_FMADC && !STORAGE_MMC */
150#elif defined(CPU_COLDFIRE) && defined(HAVE_SERIAL) 150#elif defined(CPU_COLDFIRE) && defined(HAVE_SERIAL)
151 151
152void serial_tx(const unsigned char *buf) 152void serial_tx(const unsigned char *buf)