exynos: return correct value when init_default_cbfs_media fails
BUG=none BRANCH=ToT TEST=Built daisy. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: Id6e006be1db08933dc97b5e797a85f3cbf9f6486 Reviewed-on: https://chromium-review.googlesource.com/232513 Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
0f078e89da
commit
1ff51e887a
3 changed files with 7 additions and 3 deletions
|
|
@ -84,7 +84,11 @@ struct lb_memory;
|
|||
void *selfload(struct lb_memory *mem, struct cbfs_payload *payload);
|
||||
void selfboot(void *entry);
|
||||
|
||||
/* Defined in individual arch / board implementation. */
|
||||
/*
|
||||
* Defined in individual arch / board implementation.
|
||||
*
|
||||
* it returns 0 on success and non-zero on error.
|
||||
*/
|
||||
int init_default_cbfs_media(struct cbfs_media *media);
|
||||
|
||||
#if CONFIG_RELOCATABLE_RAMSTAGE && defined(__ROMSTAGE__)
|
||||
|
|
|
|||
|
|
@ -171,6 +171,6 @@ int init_default_cbfs_media(struct cbfs_media *media)
|
|||
default:
|
||||
printk(BIOS_EMERG, "Exynos OM_STAT value 0x%x not supported!\n",
|
||||
exynos_power->om_stat);
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -178,6 +178,6 @@ int init_default_cbfs_media(struct cbfs_media *media)
|
|||
default:
|
||||
printk(BIOS_EMERG, "Exynos OM_STAT value 0x%x not supported!\n",
|
||||
exynos_power->om_stat);
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue