summaryrefslogtreecommitdiff
path: root/firmware/target/arm
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
parent28d5f2aa57e8963a82849b2009274e8272094c86 (diff)
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')
-rw-r--r--firmware/target/arm/as3525/sd-as3525.c2
-rw-r--r--firmware/target/arm/s3c2440/sd-s3c2440.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c
index b36c326cb6..6a8606af6a 100644
--- a/firmware/target/arm/as3525/sd-as3525.c
+++ b/firmware/target/arm/as3525/sd-as3525.c
@@ -137,7 +137,7 @@ static bool hs_card = false;
#endif
static struct semaphore transfer_completion_signal;
-static volatile unsigned int transfer_error[NUM_VOLUMES];
+static volatile unsigned int transfer_error[NUM_DRIVES];
#define PL180_MAX_TRANSFER_ERRORS 10
#define UNALIGNED_NUM_SECTORS 10
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)));