Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4037389rwe; Tue, 30 Aug 2022 03:35:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR47YBHFyBD1OCTFEhzvZNLtrguubd+uDzrQGivqNyFtb4PwdjUwKUvZD7XsO3EUywiXCZYS X-Received: by 2002:a17:90b:3ec2:b0:1f7:3f49:17c3 with SMTP id rm2-20020a17090b3ec200b001f73f4917c3mr22528778pjb.203.1661855730882; Tue, 30 Aug 2022 03:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661855730; cv=none; d=google.com; s=arc-20160816; b=liCln+P3xLoAwtVo0fQUNNMebibrbAZRonTp/2Ln9200Hh6Zh6dOxnnoMgACtMnsMy 4ELxnnmRydZ5VGPOdyZqY85YBm5HeVdR3COPluKA2z7o/AccD9zfSb3Ul3iKawXxeApE OujYbpQ4pYix4LLV888v7+4q4BpPiAwVxq9wYgMsq9qbxd/v3XTPjrLs3dEXzyDOC4I2 LcRgQJfOkgXRjq8NxSrUD56aDYkOseGDT6HZIP/wDQSD1BOy76SlggbvCTSIFUWN3+Cu AEWuq8ff4pxYCnfJF9oNYlgmH3BntHo6sK+Sly8PAFOSgL0sidfyZvmM6RtKLUDFEXTT OK2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=FbJNdcyWhS21IhW1MsohuY7VZPQtAhXrW/aHH5JMAVg=; b=MlbUorfG2VRLgXmm/PCoTPHYbyH4pii93Dne98K8gtAJSDUkyXRGaKeVDbut4RfcO1 GZtIhn42F++rcEOEQ4GHiaYII7oYk7DpkxJ8s02WGL9dzN5ym1LzaPYmbz48ZJcQRaMI btkfnLVvmJyjeK6z72N2tBdz0XRDcr2Mps+OKf8QEyAPS1G+K/pfImVSOSl2GTG7MOhH 4j7/s9Aod0UqJoHCa+kn16vIswUf8u7OzAwYqDJyHOyNIaztyWN4phJDwAjbIioXducq rQxWhKkgGptG+bDf/E76jqScgnR9Tclf1g4CZzA7caT7QOg1GOcgkdc41D7sMDdjRd/V 8pQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x18-20020a170902ea9200b0017469c1ea86si8614535plb.579.2022.08.30.03.35.19; Tue, 30 Aug 2022 03:35:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbiH3KMV (ORCPT + 99 others); Tue, 30 Aug 2022 06:12:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbiH3KLv (ORCPT ); Tue, 30 Aug 2022 06:11:51 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DE12DFB0C4 for ; Tue, 30 Aug 2022 03:07:31 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6B17E153B; Tue, 30 Aug 2022 03:07:37 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 10F423F766; Tue, 30 Aug 2022 03:07:29 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org Cc: Sudeep Holla , Marc Bonnici , Achin Gupta , Jens Wiklander , Valentin Laurent , Lukas Hanel , Coboy Chen Subject: [PATCH 3/9] firmware: arm_ffa: Remove ffa_dev_ops_get() Date: Tue, 30 Aug 2022 11:06:54 +0100 Message-Id: <20220830100700.344594-4-sudeep.holla@arm.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220830100700.344594-1-sudeep.holla@arm.com> References: <20220830100700.344594-1-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). Signed-off-by: Sudeep Holla --- drivers/firmware/arm_ffa/driver.c | 9 --------- include/linux/arm_ffa.h | 6 ------ 2 files changed, 15 deletions(-) diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c index 213665e5ad0e..04e7cbb1b9aa 100644 --- a/drivers/firmware/arm_ffa/driver.c +++ b/drivers/firmware/arm_ffa/driver.c @@ -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; diff --git a/include/linux/arm_ffa.h b/include/linux/arm_ffa.h index 91b47e42b73d..556f50f27fb1 100644 --- a/include/linux/arm_ffa.h +++ b/include/linux/arm_ffa.h @@ -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) \ -- 2.37.2