aboutsummaryrefslogtreecommitdiff
path: root/services/spd/trusty
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-09-18 13:13:24 +0100
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-09-18 13:33:28 +0100
commit0153806b9e3756ad81629bbfd2a0f909a1b579fc (patch)
tree857612f92a2ebbe2c305e0364657752d85b5c5fd /services/spd/trusty
parente52ed092cde21d13533df32eb68629a980d69b4b (diff)
downloadtrusted-firmware-a-0153806b9e3756ad81629bbfd2a0f909a1b579fc.tar.gz
trusty: Fix return value of trusty_init()
The value used to signal failure is 0. It is needed to return a different value on success. Change-Id: I2186aa7dfbfc825bfe7b3d5ae3c4de7af10ee44f Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'services/spd/trusty')
-rw-r--r--services/spd/trusty/trusty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/spd/trusty/trusty.c b/services/spd/trusty/trusty.c
index cc808e2b0b..3335836225 100644
--- a/services/spd/trusty/trusty.c
+++ b/services/spd/trusty/trusty.c
@@ -322,7 +322,7 @@ static int32_t trusty_init(void)
fpregs_context_restore(get_fpregs_ctx(cm_get_context(NON_SECURE)));
cm_set_next_eret_context(NON_SECURE);
- return 0;
+ return 1;
}
static void trusty_cpu_suspend(uint32_t off)