aboutsummaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorTom Rini2021-12-18 14:39:21 -0500
committerTom Rini2021-12-18 14:39:21 -0500
commitd3213c26b56e564207515f1e28e663718e015dc3 (patch)
treef480ec7ab357d7cb94b35eae97174a56305fb866 /disk
parentc03942ddc9e88d86d919504299905e4e8b0003cd (diff)
parent3cfc042d43f5c5cec4bcf0133202bdd8516df66c (diff)
Merge tag 'efi-2022-01-rc4-3' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2022-01-rc4-3 Documentation: * add Calxeda Highbank/Midway board documentation Bug fixes: * call part_init() in blk_get_device_by_str() only for MMC * fix an 'undefined' error in some driver model macros
Diffstat (limited to 'disk')
-rw-r--r--disk/part.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c
index e857a9f9585..99f592d96c2 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -430,7 +430,8 @@ int blk_get_device_by_str(const char *ifname, const char *dev_hwpart_str,
* Always should be done, otherwise hw partition 0 will return stale
* data after displaying a non-zero hw partition.
*/
- part_init(*dev_desc);
+ if ((*dev_desc)->if_type == IF_TYPE_MMC)
+ part_init(*dev_desc);
#endif
cleanup: