summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/sdmmc-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-12-06 01:55:37 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2013-12-06 01:55:37 +0100
commitc945fb6e94252faa9c6cdf5a5e73a60ededda8a8 (patch)
tree4011f565df5cf86040eecde82fcd0355e6f6b77a /firmware/target/arm/imx233/sdmmc-imx233.c
parent065910663a83577acfb8e464403abdbcd2e6c042 (diff)
downloadrockbox-c945fb6e94252faa9c6cdf5a5e73a60ededda8a8.tar.gz
rockbox-c945fb6e94252faa9c6cdf5a5e73a60ededda8a8.tar.bz2
rockbox-c945fb6e94252faa9c6cdf5a5e73a60ededda8a8.zip
imx233: fix storage code to work for non-MD builds
Change-Id: Ic326e59385aff3be1ada52b482e94051c512323d
Diffstat (limited to 'firmware/target/arm/imx233/sdmmc-imx233.c')
-rw-r--r--firmware/target/arm/imx233/sdmmc-imx233.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/target/arm/imx233/sdmmc-imx233.c b/firmware/target/arm/imx233/sdmmc-imx233.c
index b43d3b237b..08eae021bc 100644
--- a/firmware/target/arm/imx233/sdmmc-imx233.c
+++ b/firmware/target/arm/imx233/sdmmc-imx233.c
@@ -874,14 +874,14 @@ int sd_num_drives(int first_drive)
return _sd_num_drives;
}
-bool sd_present(int sd_drive)
+bool sd_present(IF_MD_NONVOID(int sd_drive))
{
- return sdmmc_present(sd_map[sd_drive]);
+ return sdmmc_present(sd_map[IF_MD_DRV(sd_drive)]);
}
-bool sd_removable(int sd_drive)
+bool sd_removable(IF_MD_NONVOID(int sd_drive))
{
- return sdmmc_removable(sd_map[sd_drive]);
+ return sdmmc_removable(sd_map[IF_MD_DRV(sd_drive)]);
}
long sd_last_disk_activity(void)
@@ -949,14 +949,14 @@ int mmc_num_drives(int first_drive)
return _mmc_num_drives;
}
-bool mmc_present(int mmc_drive)
+bool mmc_present(IF_MD_NONVOID(int mmc_drive))
{
- return sdmmc_present(mmc_map[mmc_drive]);
+ return sdmmc_present(mmc_map[IF_MD_DRV(mmc_drive)]);
}
-bool mmc_removable(int mmc_drive)
+bool mmc_removable(IF_MD_NONVOID(int mmc_drive))
{
- return sdmmc_removable(mmc_map[mmc_drive]);
+ return sdmmc_removable(mmc_map[IF_MD_DRV(mmc_drive)]);
}
long mmc_last_disk_activity(void)