summaryrefslogtreecommitdiff
path: root/bl2
diff options
context:
space:
mode:
authorJuan Castillo <jcastillo.devel@gmail.com>2015-10-01 18:37:40 +0100
committerJuan Castillo <juan.castillo@arm.com>2015-10-23 16:57:52 +0100
commit78460a05e4504c861708f19812f8cb1710a99edc (patch)
treebcbb19352ff5a688929e0dead3858423822f5a7d /bl2
parent7e26fe1f05bb05ce6e0f95b9a44ada2a21d53dd3 (diff)
Use standard errno definitions in load_auth_image()
This patch replaces custom definitions used as return values for the load_auth_image() function with standard error codes defined in errno.h. The custom definitions have been removed. It also replaces the usage of IO framework error custom definitions, which have been deprecated. Standard errno definitions are used instead. Change-Id: I1228477346d3876151c05b470d9669c37fd231be
Diffstat (limited to 'bl2')
-rw-r--r--bl2/bl2_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bl2/bl2_main.c b/bl2/bl2_main.c
index 71940a62..404744b7 100644
--- a/bl2/bl2_main.c
+++ b/bl2/bl2_main.c
@@ -34,6 +34,7 @@
#include <auth_mod.h>
#include <bl_common.h>
#include <debug.h>
+#include <errno.h>
#include <platform.h>
#include <platform_def.h>
#include <stdint.h>
@@ -239,7 +240,7 @@ void bl2_main(void)
e = load_bl32(bl2_to_bl31_params);
if (e) {
- if (e == LOAD_AUTH_ERR) {
+ if (e == -EAUTH) {
ERROR("Failed to authenticate BL3-2\n");
panic();
} else {