summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-07-20 13:47:21 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-07-20 13:47:21 +0000
commita7548d3bc7b4cb91553a59a06490290869270437 (patch)
treeadf85b2bc2fd74f45c18b54fcfe1aaf4d77fa05f /firmware/target/mips
parent3e1b9d5fdd73d97b3be5043f2cfa2176c1d441a1 (diff)
downloadrockbox-a7548d3bc7b4cb91553a59a06490290869270437.tar.gz
rockbox-a7548d3bc7b4cb91553a59a06490290869270437.tar.bz2
rockbox-a7548d3bc7b4cb91553a59a06490290869270437.zip
Make sd_present() and mmc_present() look only at the actual presence of a card, not at initialisation state
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21981 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
index b1a9d599d9..544e0cf481 100644
--- a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
@@ -1366,10 +1366,10 @@ bool sd_removable(IF_MV_NONVOID(int drive))
bool sd_present(IF_MV_NONVOID(int drive))
{
-#ifdef HAVE_MULTIVOLUME
+#ifdef HAVE_MULTIDRIVE
(void)drive;
#endif
- return (card.numblocks > 0 && card_detect_target());
+ return card_detect_target();
}
#ifdef CONFIG_STORAGE_MULTI