mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
xpl: Rename u_boot_first_phase to xpl_is_first_phase()
This is a better name for this function, so update it. Tidy up the function comment to mention VPL. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
90fb55e042
commit
713bfc58f9
4 changed files with 13 additions and 11 deletions
|
@ -464,13 +464,13 @@ static int spl_common_init(bool setup_malloc)
|
|||
gd->malloc_ptr = 0;
|
||||
}
|
||||
#endif
|
||||
ret = bootstage_init(u_boot_first_phase());
|
||||
ret = bootstage_init(xpl_is_first_phase());
|
||||
if (ret) {
|
||||
debug("%s: Failed to set up bootstage: ret=%d\n", __func__,
|
||||
ret);
|
||||
return ret;
|
||||
}
|
||||
if (!u_boot_first_phase()) {
|
||||
if (!xpl_is_first_phase()) {
|
||||
ret = bootstage_unstash_default();
|
||||
if (ret)
|
||||
log_debug("Failed to unstash bootstage: ret=%d\n", ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue