summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/ata-sd-pp.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-01-21 02:44:20 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-01-21 02:44:20 +0000
commit580d91f097b23aa1bb3b935bd45c1d64655e2259 (patch)
tree1421795cc5119b6872b443bf02acbe0618fc840d /firmware/target/arm/ata-sd-pp.c
parenta7ec73cddd5512cc1d6f62327faa52fe9a094fb4 (diff)
downloadrockbox-580d91f097b23aa1bb3b935bd45c1d64655e2259.tar.gz
rockbox-580d91f097b23aa1bb3b935bd45c1d64655e2259.zip
Unify kernel list management for ticks, registered queues and timeout objects by using NULL-terminated lists of pointers. Redo timeout API a bit to simplify it and integrate it. Should give some small binsize reduction accross the board but more if timeout objects are being included.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19808 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ata-sd-pp.c')
-rw-r--r--firmware/target/arm/ata-sd-pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/ata-sd-pp.c b/firmware/target/arm/ata-sd-pp.c
index 8f2ee503d8..eb94072ff8 100644
--- a/firmware/target/arm/ata-sd-pp.c
+++ b/firmware/target/arm/ata-sd-pp.c
@@ -1215,7 +1215,7 @@ bool card_detect_target(void)
}
#ifdef HAVE_HOTSWAP
-static bool sd1_oneshot_callback(struct timeout *tmo)
+static int sd1_oneshot_callback(struct timeout *tmo)
{
(void)tmo;
@@ -1226,7 +1226,7 @@ static bool sd1_oneshot_callback(struct timeout *tmo)
else
queue_broadcast(SYS_HOTSWAP_EXTRACTED, 0);
- return false;
+ return 0;
}
/* called on insertion/removal interrupt */