mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-30 02:51:33 +08:00
[component] sdio: Fix mmc mount function if the whole device is a partition
If the whole sd card was formatted as a partition, current code break out the loop mistakenly, so it skips dfs_mount_device later. Simply remove the broken 'break' to solve this problem. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This commit is contained in:
parent
3e8c03e934
commit
a33bc0f321
@ -460,8 +460,6 @@ rt_int32_t rt_mmcsd_blk_probe(struct rt_mmcsd_card *card)
|
||||
rt_device_register(&blk_dev->dev, "sd0",
|
||||
RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_REMOVABLE | RT_DEVICE_FLAG_STANDALONE);
|
||||
rt_list_insert_after(&blk_devices, &blk_dev->list);
|
||||
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user