diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/imx233/sdmmc-imx233.c | 16 |
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) | |||
874 | return _sd_num_drives; | 874 | return _sd_num_drives; |
875 | } | 875 | } |
876 | 876 | ||
877 | bool sd_present(int sd_drive) | 877 | bool sd_present(IF_MD_NONVOID(int sd_drive)) |
878 | { | 878 | { |
879 | return sdmmc_present(sd_map[sd_drive]); | 879 | return sdmmc_present(sd_map[IF_MD_DRV(sd_drive)]); |
880 | } | 880 | } |
881 | 881 | ||
882 | bool sd_removable(int sd_drive) | 882 | bool sd_removable(IF_MD_NONVOID(int sd_drive)) |
883 | { | 883 | { |
884 | return sdmmc_removable(sd_map[sd_drive]); | 884 | return sdmmc_removable(sd_map[IF_MD_DRV(sd_drive)]); |
885 | } | 885 | } |
886 | 886 | ||
887 | long sd_last_disk_activity(void) | 887 | long sd_last_disk_activity(void) |
@@ -949,14 +949,14 @@ int mmc_num_drives(int first_drive) | |||
949 | return _mmc_num_drives; | 949 | return _mmc_num_drives; |
950 | } | 950 | } |
951 | 951 | ||
952 | bool mmc_present(int mmc_drive) | 952 | bool mmc_present(IF_MD_NONVOID(int mmc_drive)) |
953 | { | 953 | { |
954 | return sdmmc_present(mmc_map[mmc_drive]); | 954 | return sdmmc_present(mmc_map[IF_MD_DRV(mmc_drive)]); |
955 | } | 955 | } |
956 | 956 | ||
957 | bool mmc_removable(int mmc_drive) | 957 | bool mmc_removable(IF_MD_NONVOID(int mmc_drive)) |
958 | { | 958 | { |
959 | return sdmmc_removable(mmc_map[mmc_drive]); | 959 | return sdmmc_removable(mmc_map[IF_MD_DRV(mmc_drive)]); |
960 | } | 960 | } |
961 | 961 | ||
962 | long mmc_last_disk_activity(void) | 962 | long mmc_last_disk_activity(void) |