From 9ca7f9dc6b22b77731e7e153947f0b6a06d9708f Mon Sep 17 00:00:00 2001 From: "luohui2320@gmail.com" Date: Sun, 4 Mar 2012 15:59:54 +0000 Subject: [PATCH] fix a bug in SDIO driver git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1989 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/drivers/sdio/sdio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c index dc48015c4..9cde15fbc 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))