diff options
| author | Bernard Xiong <[email protected]> | 2017-10-20 12:42:58 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-10-20 12:42:58 +0800 |
| commit | fbe3a4d1db8d198bd4d8a516d129c36c61d1d57b (patch) | |
| tree | 95ee5c063e07d4882c16be8875bad4afe6f257b3 /components | |
| parent | e448ecc6ad805109480ecc191f0e2d786216a297 (diff) | |
| parent | 5150e19d4b901db5b3f596b17e6aef857c4e424d (diff) | |
Merge pull request #886 from weety/rtt3_0_dm365
[BSP] use main() in dm365 bsp.
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/sdio/block_dev.c | 1 | ||||
| -rw-r--r-- | components/drivers/sdio/sdio.c | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/components/drivers/sdio/block_dev.c b/components/drivers/sdio/block_dev.c index 3e142ee6e4..c986556879 100644 --- a/components/drivers/sdio/block_dev.c +++ b/components/drivers/sdio/block_dev.c @@ -483,3 +483,4 @@ void rt_mmcsd_blk_init(void) { /* nothing */ } + diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c index 496765854e..dc0cd1eb96 100644 --- a/components/drivers/sdio/sdio.c +++ b/components/drivers/sdio/sdio.c @@ -33,8 +33,8 @@ #define RT_SDIO_THREAD_PRIORITY 0x40 #endif -static rt_list_t sdio_cards; -static rt_list_t sdio_drivers; +static rt_list_t sdio_cards = RT_LIST_OBJECT_INIT(sdio_cards); +static rt_list_t sdio_drivers = RT_LIST_OBJECT_INIT(sdio_drivers); struct sdio_card { @@ -1397,7 +1397,6 @@ rt_int32_t sdio_unregister_driver(struct rt_sdio_driver *driver) void rt_sdio_init(void) { - rt_list_init(&sdio_cards); - rt_list_init(&sdio_drivers); + } |
