fix a bug in SDIO driver

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1989 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
luohui2320@gmail.com 2012-03-04 15:59:54 +00:00
parent 53a51ebff8
commit 9ca7f9dc6b
1 changed files with 2 additions and 0 deletions

View File

@ -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))