trusty: Fix return value of trusty_init()
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Tue, 18 Sep 2018 12:13:24 +0000 (13:13 +0100)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Tue, 18 Sep 2018 12:33:28 +0000 (13:33 +0100)
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>
services/spd/trusty/trusty.c

index cc808e2b0b59b37040968b8807909b3d9f96d0d9..333583622558919d48b0ae3605f3cef883b374dc 100644 (file)
@@ -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)