summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-02-01 12:53:32 +0100
committerAlexander Graf <agraf@suse.de>2018-02-10 00:24:00 +0100
commit038782a27ad24260a4bc536772e10c351cf6522d (patch)
tree68fb1ca814d0fd2c0b41c1a96d22bfc4d079b0ec /lib
parentf19a95a40b9f6fd2845fce1c6442042b662bce28 (diff)
downloadu-boot-038782a27ad24260a4bc536772e10c351cf6522d.tar.gz
u-boot-038782a27ad24260a4bc536772e10c351cf6522d.tar.xz
u-boot-038782a27ad24260a4bc536772e10c351cf6522d.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_driver/efi_uclass.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/efi_driver/efi_uclass.c b/lib/efi_driver/efi_uclass.c
index 90797f96d8..46b69b479c 100644
--- a/lib/efi_driver/efi_uclass.c
+++ b/lib/efi_driver/efi_uclass.c
@@ -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;