mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 20:54:24 +08:00
bootstd: cros: Correct condition for read method
This has a typo which makes the method inoperable. Correct it so that 'bootflow read' works correctly for ChromeOS. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
19248dcec5
commit
a831d11378
@ -406,7 +406,7 @@ static int cros_read_file(struct udevice *dev, struct bootflow *bflow,
|
|||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(BOOSTD_FULL)
|
#if CONFIG_IS_ENABLED(BOOTSTD_FULL)
|
||||||
static int cros_read_all(struct udevice *dev, struct bootflow *bflow)
|
static int cros_read_all(struct udevice *dev, struct bootflow *bflow)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
@ -419,7 +419,7 @@ static int cros_read_all(struct udevice *dev, struct bootflow *bflow)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* BOOSTD_FULL */
|
#endif /* BOOTSTD_FULL */
|
||||||
|
|
||||||
static int cros_boot(struct udevice *dev, struct bootflow *bflow)
|
static int cros_boot(struct udevice *dev, struct bootflow *bflow)
|
||||||
{
|
{
|
||||||
@ -458,9 +458,9 @@ static struct bootmeth_ops cros_bootmeth_ops = {
|
|||||||
.read_bootflow = cros_read_bootflow,
|
.read_bootflow = cros_read_bootflow,
|
||||||
.read_file = cros_read_file,
|
.read_file = cros_read_file,
|
||||||
.boot = cros_boot,
|
.boot = cros_boot,
|
||||||
#if CONFIG_IS_ENABLED(BOOSTD_FULL)
|
#if CONFIG_IS_ENABLED(BOOTSTD_FULL)
|
||||||
.read_all = cros_read_all,
|
.read_all = cros_read_all,
|
||||||
#endif /* BOOSTD_FULL */
|
#endif /* BOOTSTD_FULL */
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct udevice_id cros_bootmeth_ids[] = {
|
static const struct udevice_id cros_bootmeth_ids[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user