mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-23 12:14:32 +08:00
bootstd: Avoid calling unavailable block functions
When BLK is not enabled but BOOTSTD is, some features of standard boot become unavailable. Add a check for this in the only site that is currently apparent. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8c3e44d307
commit
aa0b3e6ef4
@ -434,6 +434,9 @@ int bootdev_find_by_label(const char *label, struct udevice **devp,
|
||||
struct uclass *uc;
|
||||
enum uclass_id id;
|
||||
|
||||
if (!CONFIG_IS_ENABLED(BLK))
|
||||
return -ENOSYS;
|
||||
|
||||
ret = label_to_uclass(label, &seq, &method_flags);
|
||||
if (ret < 0)
|
||||
return log_msg_ret("uc", ret);
|
||||
|
Loading…
Reference in New Issue
Block a user