]> git.itanic.dy.fi Git - linux-stable/commitdiff
firmware: arm_ffa: Remove ffa_dev_ops_get()
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 7 Sep 2022 14:52:33 +0000 (15:52 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 8 Sep 2022 10:30:34 +0000 (11:30 +0100)
The only user of this exported ffa_dev_ops_get() was OPTEE driver which
now uses ffa_dev->ops directly, there are no other users for this.

Also, since any ffa driver can use ffa_dev->ops directly, there will be
no need for ffa_dev_ops_get(), so just remove ffa_dev_ops_get().

Link: https://lore.kernel.org/r/20220907145240.1683088-4-sudeep.holla@arm.com
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c
include/linux/arm_ffa.h

index 213665e5ad0e4a752b5a5e36d2da0b39fb2ee3f0..04e7cbb1b9aa5a763a3e0f7b455bee51ddfc5fe9 100644 (file)
@@ -644,15 +644,6 @@ static const struct ffa_dev_ops ffa_ops = {
        .memory_lend = ffa_memory_lend,
 };
 
-const struct ffa_dev_ops *ffa_dev_ops_get(struct ffa_device *dev)
-{
-       if (ffa_device_is_valid(dev))
-               return &ffa_ops;
-
-       return NULL;
-}
-EXPORT_SYMBOL_GPL(ffa_dev_ops_get);
-
 void ffa_device_match_uuid(struct ffa_device *ffa_dev, const uuid_t *uuid)
 {
        int count, idx;
index 91b47e42b73db0c182ad9bdb9c0d454d950b4c5f..556f50f27fb164c5a130cd5b96cc0ad77a5d02f0 100644 (file)
@@ -55,7 +55,6 @@ int ffa_driver_register(struct ffa_driver *driver, struct module *owner,
                        const char *mod_name);
 void ffa_driver_unregister(struct ffa_driver *driver);
 bool ffa_device_is_valid(struct ffa_device *ffa_dev);
-const struct ffa_dev_ops *ffa_dev_ops_get(struct ffa_device *dev);
 
 #else
 static inline
@@ -79,11 +78,6 @@ static inline void ffa_driver_unregister(struct ffa_driver *driver) {}
 static inline
 bool ffa_device_is_valid(struct ffa_device *ffa_dev) { return false; }
 
-static inline
-const struct ffa_dev_ops *ffa_dev_ops_get(struct ffa_device *dev)
-{
-       return NULL;
-}
 #endif /* CONFIG_ARM_FFA_TRANSPORT */
 
 #define ffa_register(driver) \