mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
bootstd: Add a way to set up a bootflow
Add a function to init a bootflow, to reduce code duplication. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -440,10 +440,7 @@ int bootdev_get_bootflow(struct udevice *dev, struct bootflow_iter *iter,
|
||||
|
||||
if (!ops->get_bootflow)
|
||||
return -ENOSYS;
|
||||
memset(bflow, '\0', sizeof(*bflow));
|
||||
bflow->dev = dev;
|
||||
bflow->method = iter->method;
|
||||
bflow->state = BOOTFLOWST_BASE;
|
||||
bootflow_init(bflow, dev, iter->method);
|
||||
|
||||
return ops->get_bootflow(dev, iter, bflow);
|
||||
}
|
||||
|
Reference in New Issue
Block a user