Răsfoiți Sursa

[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>
Shawn Lin 5 ani în urmă
părinte
comite
a33bc0f321
1 a modificat fișierele cu 0 adăugiri și 2 ștergeri
  1. 0 2
      components/drivers/sdio/block_dev.c

+ 0 - 2
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
                 {