summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-03-04 15:59:54 +0000
committer[email protected] <[email protected]>2012-03-04 15:59:54 +0000
commit9ca7f9dc6b22b77731e7e153947f0b6a06d9708f (patch)
tree96eb11ea6e944f0d4a390083345a17d2ef0297f4
parent53a51ebff83c9b37b9a8c95ca933a5f8e2de3ccc (diff)
fix a bug in SDIO driver
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1989 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--components/drivers/sdio/sdio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c
index dc48015c40..9cde15fbca 100644
--- a/components/drivers/sdio/sdio.c
+++ b/components/drivers/sdio/sdio.c
@@ -741,6 +741,8 @@ static rt_int32_t sdio_register_card(struct rt_mmcsd_card *card)
rt_kprintf("malloc sdio card failed\n");
return -RT_ENOMEM;
}
+
+ sc->card = card;
list_insert_after(&sdio_cards, &sc->list);
if (list_isempty(&sdio_drivers))