diff mbox series

[4/4] tee: optee: Use ffa_dev_get_drvdata to fetch driver_data

Message ID 20220429113946.2087145-4-sudeep.holla@arm.com (mailing list archive)
State New, archived
Headers show
Series [1/4] firmware: arm_ffa: Fix uuid parameter to ffa_partition_probe | expand

Commit Message

Sudeep Holla April 29, 2022, 11:39 a.m. UTC
Due to lack of an helper like ffa_dev_get_drvdata, this driver was
fetching driver_data directly accessing the structure member. Now that
we have added an helper, just use the same instead.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
---
 drivers/tee/optee/ffa_abi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/tee/optee/ffa_abi.c b/drivers/tee/optee/ffa_abi.c
index a5eb4ef46971..b819a65cf89d 100644
--- a/drivers/tee/optee/ffa_abi.c
+++ b/drivers/tee/optee/ffa_abi.c
@@ -759,7 +759,7 @@  static const struct optee_ops optee_ffa_ops = {
 
 static void optee_ffa_remove(struct ffa_device *ffa_dev)
 {
-	struct optee *optee = ffa_dev->dev.driver_data;
+	struct optee *optee = ffa_dev_get_drvdata(ffa_dev);
 
 	optee_remove_common(optee);