summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorTobias Diedrich <ranma+coreboot@tdiedrich.de>2010-06-24 19:12:14 +0000
committerTobias Diedrich <ranma+coreboot@tdiedrich.de>2010-06-24 19:12:14 +0000
commita035ed4cb0848e07dbc4df82ca560aeb5a3935c3 (patch)
treed0346b2199e6f1f2944783381d08254d48c1035d /firmware
parent90602ae076462a7fdcdf6c7037198f1bebbdc6a2 (diff)
Fix sd-as3525.c build for non-multidrive targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27114 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525.c4
1 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 55e12afb82..1fd10bfaee 100644
--- a/firmware/target/arm/as3525/sd-as3525.c
+++ b/firmware/target/arm/as3525/sd-as3525.c
@@ -904,10 +904,10 @@ int sd_write_sectors(IF_MD2(int drive,) unsigned long start, int count,
if(transfer > UNALIGNED_NUM_SECTORS)
transfer = UNALIGNED_NUM_SECTORS;
- sd_transfer_sectors(drive, start, transfer, aligned_buffer, false);
+ sd_transfer_sectors(IF_MD2(drive,) start, transfer, aligned_buffer, false);
if (memcmp(buf, aligned_buffer, transfer * 512) != 0) {
/* try the write again in the hope to repair the damage */
- sd_transfer_sectors(drive, saved_start, saved_count, saved_buf, true);
+ sd_transfer_sectors(IF_MD2(drive,) saved_start, saved_count, saved_buf, true);
panicf("sd: verify failed: sec=%ld n=%d!", start, transfer);
}