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:
parent
53a51ebff8
commit
9ca7f9dc6b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue