diff options
author | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-06-24 19:12:14 +0000 |
---|---|---|
committer | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-06-24 19:12:14 +0000 |
commit | a035ed4cb0848e07dbc4df82ca560aeb5a3935c3 (patch) | |
tree | d0346b2199e6f1f2944783381d08254d48c1035d /firmware | |
parent | 90602ae076462a7fdcdf6c7037198f1bebbdc6a2 (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.c | 4 |
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); } |