Remove the use of global own_id from ffarpc_call_ep

Pass own_id as the parameter of ffa_call_ep_init to remove dependency
on own_id global variable.

Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: Ib1beefd856a52dd86a72854a487c1768741ebbd2
diff --git a/deployments/attestation/common/attestation_sp.c b/deployments/attestation/common/attestation_sp.c
index 6cfb55c..c4d4e9c 100644
--- a/deployments/attestation/common/attestation_sp.c
+++ b/deployments/attestation/common/attestation_sp.c
@@ -95,7 +95,7 @@
 	attest_provider_register_serializer(&attest_provider,
 		TS_RPC_ENCODING_PACKED_C, packedc_attest_provider_serializer_instance());
 
-	ffa_call_ep_init(&ffarpc_call_ep, attest_iface);
+	ffa_call_ep_init(&ffarpc_call_ep, attest_iface, own_id);
 
 	/*********************************************************
 	 * End of boot phase
diff --git a/deployments/crypto/common/crypto_sp.c b/deployments/crypto/common/crypto_sp.c
index 867cf3f..b198d19 100644
--- a/deployments/crypto/common/crypto_sp.c
+++ b/deployments/crypto/common/crypto_sp.c
@@ -51,7 +51,7 @@
 		crypto_iface = service_provider_get_rpc_interface(&crypto_provider->base_provider);
 	}
 
-	ffa_call_ep_init(&ffarpc_call_ep, crypto_iface);
+	ffa_call_ep_init(&ffarpc_call_ep, crypto_iface, own_id);
 
 	/* End of boot phase */
 	sp_msg_wait(&req_msg);
diff --git a/deployments/env-test/common/env_test.c b/deployments/env-test/common/env_test.c
index 78c439f..5b8b84a 100644
--- a/deployments/env-test/common/env_test.c
+++ b/deployments/env-test/common/env_test.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: BSD-3-Clause
 /*
- * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
  */
 
 #include <rpc/ffarpc/caller/sp/ffarpc_caller.h>
@@ -44,7 +44,7 @@
 
 	env_test_register_tests(&test_runner_provider);
 
-	ffa_call_ep_init(&ffarpc_call_ep, test_runner_iface);
+	ffa_call_ep_init(&ffarpc_call_ep, test_runner_iface, own_id);
 
  	/* End of boot phase */
 	sp_msg_wait(&req_msg);
diff --git a/deployments/internal-trusted-storage/common/its_sp.c b/deployments/internal-trusted-storage/common/its_sp.c
index dfc15ed..f3a6837 100644
--- a/deployments/internal-trusted-storage/common/its_sp.c
+++ b/deployments/internal-trusted-storage/common/its_sp.c
@@ -44,7 +44,7 @@
 
 	storage_backend = storage_factory_create(storage_factory_security_class_INTERNAL_TRUSTED);
 	secure_storage_iface = secure_storage_provider_init(&secure_storage_provider, storage_backend);
-	ffa_call_ep_init(&ffa_call_ep, secure_storage_iface);
+	ffa_call_ep_init(&ffa_call_ep, secure_storage_iface, own_id);
 
 	/* End of boot phase */
 	sp_msg_wait(&req_msg);
diff --git a/deployments/protected-storage/common/ps_sp.c b/deployments/protected-storage/common/ps_sp.c
index 564378d..9b55e9a 100644
--- a/deployments/protected-storage/common/ps_sp.c
+++ b/deployments/protected-storage/common/ps_sp.c
@@ -44,7 +44,7 @@
 
 	storage_backend = storage_factory_create(storage_factory_security_class_PROTECTED);
 	secure_storage_iface = secure_storage_provider_init(&secure_storage_provider, storage_backend);
-	ffa_call_ep_init(&ffa_call_ep, secure_storage_iface);
+	ffa_call_ep_init(&ffa_call_ep, secure_storage_iface, own_id);
 
 	/* End of boot phase */
 	sp_msg_wait(&req_msg);
diff --git a/deployments/se-proxy/common/se_proxy_sp.c b/deployments/se-proxy/common/se_proxy_sp.c
index 1f26ce0..fd314e4 100644
--- a/deployments/se-proxy/common/se_proxy_sp.c
+++ b/deployments/se-proxy/common/se_proxy_sp.c
@@ -33,7 +33,7 @@
 	sp_config_load(init_info);
 
 	rpc_iface = rpc_demux_init(&rpc_demux);
-	ffa_call_ep_init(&ffarpc_call_ep, rpc_iface);
+	ffa_call_ep_init(&ffarpc_call_ep, rpc_iface, own_id);
 
 	/* Create service proxies */
 	rpc_iface = its_proxy_create();