summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/s3c2440
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2011-09-18 12:51:54 +0000
committerFrank Gevaerts <frank@gevaerts.be>2011-09-18 12:51:54 +0000
commit85ad768b6e0933bec1f05775dd48574710e96d08 (patch)
tree093d514eb6718d21b3ca73d8ff0d2fb133b82e85 /firmware/target/arm/s3c2440
parent28d5f2aa57e8963a82849b2009274e8272094c86 (diff)
downloadrockbox-85ad768b6e0933bec1f05775dd48574710e96d08.tar.gz
rockbox-85ad768b6e0933bec1f05775dd48574710e96d08.tar.bz2
rockbox-85ad768b6e0933bec1f05775dd48574710e96d08.zip
Don't use NUM_VOLUMES as array size in sd card drivers. NUM_DRIVES is also wrong (the total number of drives in the system is not really related to the number of sd devices), but at least it's less wrong than NUM_VOLUMES and it matches the (wrong) assumptions the rest of the drivers make
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30569 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s3c2440')
-rw-r--r--firmware/target/arm/s3c2440/sd-s3c2440.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/s3c2440/sd-s3c2440.c b/firmware/target/arm/s3c2440/sd-s3c2440.c
index 0dcd900d11..2269e6f6d0 100644
--- a/firmware/target/arm/s3c2440/sd-s3c2440.c
+++ b/firmware/target/arm/s3c2440/sd-s3c2440.c
@@ -120,7 +120,7 @@ static const char sd_thread_name[] = "sd";
static struct mutex sd_mtx SHAREDBSS_ATTR;
static struct event_queue sd_queue;
static struct semaphore transfer_completion_signal;
-static volatile unsigned int transfer_error[NUM_VOLUMES];
+static volatile unsigned int transfer_error[NUM_DRIVES];
/* align on cache line size */
static unsigned char aligned_buffer[UNALIGNED_NUM_SECTORS * SD_BLOCK_SIZE]
__attribute__((aligned(32)));