summaryrefslogtreecommitdiffstats
path: root/drivers/tee/optee
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2022-04-29 13:39:46 +0200
committerSudeep Holla <sudeep.holla@arm.com>2022-04-29 15:51:46 +0200
commitf3f3bdbd58cea4fdd088075fdc8864fc47ecd419 (patch)
treebd834ee496f869314c59a4e13d80d8be279282c5 /drivers/tee/optee
parentfirmware: arm_ffa: Add ffa_dev_get_drvdata helper function (diff)
downloadlinux-f3f3bdbd58cea4fdd088075fdc8864fc47ecd419.tar.xz
linux-f3f3bdbd58cea4fdd088075fdc8864fc47ecd419.zip
tee: optee: Use ffa_dev_get_drvdata to fetch driver_data
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. Link: https://lore.kernel.org/r/20220429113946.2087145-4-sudeep.holla@arm.com Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/tee/optee')
-rw-r--r--drivers/tee/optee/ffa_abi.c2
1 files changed, 1 insertions, 1 deletions
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);