boot: vbe_simple: Fix vbe_simple_read_bootflow() dependency
vbe_simple_read_bootflow() calls vbe_simple_read_bootflow_fw() which is only available when BOOTMETH_VBE_SIMPLE_FW is on. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
9963b1f5b8
commit
327883c3c9
1 changed files with 7 additions and 5 deletions
|
@ -148,11 +148,13 @@ static int vbe_simple_read_bootflow(struct udevice *dev, struct bootflow *bflow)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (vbe_phase() == VBE_PHASE_FIRMWARE) {
|
if (CONFIG_IS_ENABLED(BOOTMETH_VBE_SIMPLE_FW)) {
|
||||||
ret = vbe_simple_read_bootflow_fw(dev, bflow);
|
if (vbe_phase() == VBE_PHASE_FIRMWARE) {
|
||||||
if (ret)
|
ret = vbe_simple_read_bootflow_fw(dev, bflow);
|
||||||
return log_msg_ret("fw", ret);
|
if (ret)
|
||||||
return 0;
|
return log_msg_ret("fw", ret);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Reference in a new issue