]> git.dujemihanovic.xyz Git - u-boot.git/commit
part: call part_init() in blk_get_device_by_str() only for MMC
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 10 Dec 2021 06:49:28 +0000 (15:49 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 18 Dec 2021 11:05:19 +0000 (12:05 +0100)
commit5d21dfec4ac92f8b38130660ed9c4d22712ecab5
tree751c8964fc119fb02b220c17a2d1010d46d50967
parent35f3ef93d6eda8a4c5424872f8f6d7436540d433
part: call part_init() in blk_get_device_by_str() only for MMC

In blk_get_device_by_str(), the comment says: "Updates the partition table
for the specified hw partition."
Since hw partition is supported only on MMC, it makes no sense to do so
for other devices.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
disk/part.c