[PATCH 4/4] tee: optee: Use ffa_dev_get_drvdata to fetch driver_data
Sudeep Holla
sudeep.holla at arm.com
Fri Apr 29 04:39:46 PDT 2022
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 at arm.com>
---
drivers/tee/optee/ffa_abi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.36.0
More information about the linux-arm-kernel
mailing list