summaryrefslogtreecommitdiff
path: root/src/security/vboot/bootmode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/security/vboot/bootmode.c')
-rw-r--r--src/security/vboot/bootmode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/security/vboot/bootmode.c b/src/security/vboot/bootmode.c
index 50b3cc3b6c..2363bf9588 100644
--- a/src/security/vboot/bootmode.c
+++ b/src/security/vboot/bootmode.c
@@ -13,8 +13,6 @@
* GNU General Public License for more details.
*/
-#define NEED_VB20_INTERNALS /* Peeking into vb2_shared_data */
-
#include <assert.h>
#include <bootmode.h>
#include <bootstate.h>
@@ -31,8 +29,7 @@
int vboot_check_recovery_request(void)
{
- /* TODO: Expose vb2api_recovery_reason() and vb2api_need_train_and_reboot(). */
- return vb2_get_sd(vboot_get_context())->recovery_reason;
+ return vb2api_get_recovery_reason(vboot_get_context());
}
int vboot_recovery_mode_enabled(void)