summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorShawn Lin <[email protected]>2020-03-12 08:43:16 +0800
committerShawn Lin <[email protected]>2020-03-12 09:00:33 +0800
commita33bc0f32183b137c744c6f1012e69ba77e4333b (patch)
tree86992f909d5d83572772c9b2ef22529948007936 /components/drivers
parent3e8c03e9344d98d2cfa29bfe0ba0789ef624beba (diff)
[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 <[email protected]>
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/sdio/block_dev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/components/drivers/sdio/block_dev.c b/components/drivers/sdio/block_dev.c
index 5db0f38c08..602acb9aa7 100644
--- a/components/drivers/sdio/block_dev.c
+++ b/components/drivers/sdio/block_dev.c
@@ -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
{