diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2011-03-26 23:31:29 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2011-03-26 23:31:29 +0000 |
commit | 86c4ec7277ac1c2a130a9ac1a3500c8360af5c7e (patch) | |
tree | b2bdf673d54dbaa39bd8bb6953fb204651e935ec | |
parent | 502e9e97b6c91999e6d0d92802e59d13d8ffc9de (diff) | |
download | rockbox-86c4ec7277ac1c2a130a9ac1a3500c8360af5c7e.tar.gz rockbox-86c4ec7277ac1c2a130a9ac1a3500c8360af5c7e.zip |
AMSv2 SD: use INTERNAL_AS3525 and SD_SLOT_AS3525 defines instead of a direct value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29652 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index 45b7b69be5..4338855931 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c | |||
@@ -1071,12 +1071,12 @@ tCardInfo *card_get_info_target(int card_no) | |||
1071 | #ifdef HAVE_HOTSWAP | 1071 | #ifdef HAVE_HOTSWAP |
1072 | bool sd_removable(IF_MD_NONVOID(int drive)) | 1072 | bool sd_removable(IF_MD_NONVOID(int drive)) |
1073 | { | 1073 | { |
1074 | return (drive==1); | 1074 | return (drive == SD_SLOT_AS3525); |
1075 | } | 1075 | } |
1076 | 1076 | ||
1077 | bool sd_present(IF_MD_NONVOID(int drive)) | 1077 | bool sd_present(IF_MD_NONVOID(int drive)) |
1078 | { | 1078 | { |
1079 | return (drive == 0) ? true : card_detect_target(); | 1079 | return (drive == INTERNAL_AS3525) ? true : card_detect_target(); |
1080 | } | 1080 | } |
1081 | 1081 | ||
1082 | static int sd1_oneshot_callback(struct timeout *tmo) | 1082 | static int sd1_oneshot_callback(struct timeout *tmo) |