]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
efi_loader: remove unused efi_get_time_init()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 7 Jul 2018 21:39:13 +0000 (23:39 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 25 Jul 2018 13:00:24 +0000 (15:00 +0200)
Remove unused function efi_get_time_init().

Initialization of the RTC has to be done in board bring up not in the EFI
subsystem.

There is no RTC device in the UEFI spec. The RTC is only accessed through
the runtime services.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c
include/efi_loader.h
lib/efi_loader/efi_runtime.c

index e57e70fc61227df4f56c55b42dcf466efcc4751a..b60c151fb4ac63b11508534a2d0a685d44e09194 100644 (file)
@@ -90,9 +90,6 @@ efi_status_t efi_init_obj_list(void)
        ret = efi_reset_system_init();
        if (ret != EFI_SUCCESS)
                goto out;
-       ret = efi_get_time_init();
-       if (ret != EFI_SUCCESS)
-               goto out;
 
 out:
        efi_obj_list_initialized = ret;
index 051f9c45141e1785cc7e39ccc6f7f6ce168faa28..57ca550272629482e713ae84e027d0636c5afe8d 100644 (file)
@@ -434,7 +434,6 @@ efi_status_t efi_reset_system_init(void);
 efi_status_t __efi_runtime EFIAPI efi_get_time(
                        struct efi_time *time,
                        struct efi_time_cap *capabilities);
-efi_status_t efi_get_time_init(void);
 
 #ifdef CONFIG_CMD_BOOTEFI_SELFTEST
 /*
index 1acb06a206bc8436a57a7dcb2c7b0aecb1dc5c6c..866387530a6e238372b3c611d2e3c6e69bbf924b 100644 (file)
@@ -174,11 +174,6 @@ efi_status_t __weak __efi_runtime EFIAPI efi_get_time(
        return EFI_DEVICE_ERROR;
 }
 
-efi_status_t __weak efi_get_time_init(void)
-{
-       return EFI_SUCCESS;
-}
-
 struct efi_runtime_detach_list_struct {
        void *ptr;
        void *patchto;