summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>2015-10-21 11:15:00 +0200
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>2015-10-21 11:15:00 +0200
commite6f0ad85caa2ef1c60e891df743211de48a1b61a (patch)
treee7cc46354863bd5c27811e3c798bf1817712205e
parent2a981c229030a9cc46487ba2c75aa48a5d6413de (diff)
downloadoptee-sdp-e6f0ad85caa2ef1c60e891df743211de48a1b61a.tar.gz
adapt host driver for smaf v5
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
-rw-r--r--host/smaf-optee.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/smaf-optee.c b/host/smaf-optee.c
index 575b6bf..af7e404 100644
--- a/host/smaf-optee.c
+++ b/host/smaf-optee.c
@@ -339,7 +339,7 @@ static bool smaf_optee_grant_access(void *ctx,
{
struct sdp_client *client = ctx;
- return !!sdp_grant_access(client, dev, addr, size, direction);
+ return !sdp_grant_access(client, dev, addr, size, direction);
}
static void smaf_optee_revoke_access(void *ctx,
@@ -357,8 +357,8 @@ static bool smaf_optee_allow_cpu_access(void *ctx, enum dma_data_direction direc
}
static struct smaf_secure smaf_optee_sec = {
- .create_context = smaf_optee_create_context,
- .destroy_context = smaf_optee_destroy_context,
+ .create_ctx = smaf_optee_create_context,
+ .destroy_ctx = smaf_optee_destroy_context,
.grant_access = smaf_optee_grant_access,
.revoke_access = smaf_optee_revoke_access,
.allow_cpu_access = smaf_optee_allow_cpu_access,