mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
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>
This commit is contained in:
parent
498af8d167
commit
f3f3bdbd58
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user