diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2022-04-29 12:39:46 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2022-04-29 14:51:46 +0100 |
commit | f3f3bdbd58cea4fdd088075fdc8864fc47ecd419 (patch) | |
tree | bd834ee496f869314c59a4e13d80d8be279282c5 /drivers/tee/optee | |
parent | 498af8d1678ae2351218337b47bbf3cb0fc16821 (diff) | |
download | linux-f3f3bdbd58cea4fdd088075fdc8864fc47ecd419.tar.bz2 |
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.c | 2 |
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); |