[PATCH] cmd: fs: Use part_get_info_by_dev_and_name_or_num to parse partitions

Sean Anderson sean.anderson at seco.com
Tue Mar 9 21:56:24 CET 2021


This allows using dev#partlabel syntax.

Signed-off-by: Sean Anderson <sean.anderson at seco.com>
---

 fs/fs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/fs.c b/fs/fs.c
index 900928c394..b7936fd4cf 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -385,8 +385,8 @@ int fs_set_blk_dev(const char *ifname, const char *dev_part_str, int fstype)
 	}
 #endif
 
-	part = blk_get_device_part_str(ifname, dev_part_str, &fs_dev_desc,
-					&fs_partition, 1);
+	part = part_get_info_by_dev_and_name_or_num(ifname, dev_part_str, &fs_dev_desc,
+						    &fs_partition, 1);
 	if (part < 0)
 		return -1;
 
-- 
2.25.1



More information about the U-Boot mailing list