diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-10-31 21:25:04 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-10-31 21:25:04 +0000 |
commit | 19d1cacb1a63c306d842f81127d382512c49a062 (patch) | |
tree | bac051d18aae2c9f201744890177e0021e5269be /firmware/usbstack | |
parent | 3aa58328080ab9a254d9f2329696fa4309a30d50 (diff) |
cleanup storage defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18950 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 8c1b02b183..198ff46a56 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c @@ -39,7 +39,7 @@ * by not overlapping ata_write_sector() with USB transfers. This does reduce * write performance, so we only do it for the affected DAPs */ -#ifdef HAVE_ATA_SD +#if (CONFIG_STORAGE & STORAGE_SD) #define SERIALIZE_WRITES #endif /* Enable the following define to export only the SD card slot. This @@ -668,7 +668,7 @@ static void handle_scsi(struct command_block_wrapper* cbw) block_size = SECTOR_SIZE; block_count = RAMDISK_SIZE; #else -#if defined(HAVE_ATA_SD) || defined(HAVE_HOTSWAP) +#if (CONFIG_STORAGE & STORAGE_SD) || defined(HAVE_HOTSWAP) tCardInfo* cinfo = card_get_info(lun); if(cinfo->initialized && cinfo->numblocks > 0) { block_size = cinfo->blocksize; |