summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-07-07 23:39:13 +0200
committerAlexander Graf <agraf@suse.de>2018-07-25 15:00:24 +0200
commit197005ae2a78f14e02d44096c3ecb59b921c0467 (patch)
tree3dda59a27f1bb88f0307488a1ee5beed23ae3690
parent5d889024010e0d2397c2bd3e6dd66e12e9f657d0 (diff)
efi_loader: remove unused efi_get_time_init()
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>
-rw-r--r--cmd/bootefi.c3
-rw-r--r--include/efi_loader.h1
-rw-r--r--lib/efi_loader/efi_runtime.c5
3 files changed, 0 insertions, 9 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index e57e70fc612..b60c151fb4a 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -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;
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 051f9c45141..57ca5502726 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -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
/*
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c
index 1acb06a206b..866387530a6 100644
--- a/lib/efi_loader/efi_runtime.c
+++ b/lib/efi_loader/efi_runtime.c
@@ -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;