mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi_driver: return type of efi_driver_init()
Change the return type of efi_driver_init() to efi_status_t. efi_driver_init() calls efi_add_driver() which returns an efi_status_t value. efi_driver_init() should not subject this value to a conversion to int losing high bits on 64bit systems. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
f19a95a40b
commit
038782a27a
2 changed files with 4 additions and 4 deletions
|
@ -287,10 +287,10 @@ out:
|
|||
*
|
||||
* @return 0 = success, any other value will stop further execution
|
||||
*/
|
||||
int efi_driver_init(void)
|
||||
efi_status_t efi_driver_init(void)
|
||||
{
|
||||
struct driver *drv;
|
||||
int ret = 0;
|
||||
efi_status_t ret = EFI_SUCCESS;
|
||||
|
||||
/* Save 'gd' pointer */
|
||||
efi_save_gd();
|
||||
|
@ -300,7 +300,7 @@ int efi_driver_init(void)
|
|||
drv < ll_entry_end(struct driver, driver); ++drv) {
|
||||
if (drv->id == UCLASS_EFI) {
|
||||
ret = efi_add_driver(drv);
|
||||
if (ret) {
|
||||
if (ret != EFI_SUCCESS) {
|
||||
printf("EFI: ERROR: failed to add driver %s\n",
|
||||
drv->name);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue