Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5824376rwb; Wed, 7 Sep 2022 08:28:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR4E3cidnYaSSjq68k3lWLMsZS0FOjMCcGgpAXjRe/FeviCJ26LZuiYf1vKnJUJnmU+TLaRQ X-Received: by 2002:a63:5d4e:0:b0:41d:2966:74e7 with SMTP id o14-20020a635d4e000000b0041d296674e7mr3832213pgm.526.1662564537475; Wed, 07 Sep 2022 08:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662564537; cv=none; d=google.com; s=arc-20160816; b=s4hpAp+kP5XBDZoibZ7VB/t3ftoB+lAuOR7XJr8CZGe0JmujWSd2sYErXzTLqsm8k0 oH+NfsGdUd1pn2F5ZenlAt58GGqceJcBL5nPjOivGcWjEQBuMwfQSdXnv+isxYm8OUvG NkWyIePIS+56K/r0L17xdsBBTIpiHFEU7Mgh0n5fx1lTGjH5WlLXhLVeJQFj40aNB5/4 kkk6M09g75Dvu9JTNbxrl+2kJ/AMbji38WXm2V47/XgaxKvGemuwMkzK0n8W7wSck1oQ D83TbA9J960iGfZTn2k03/XB4hpC36ddGsc7RoiFKwS1l2bbt0+yaS1Yf18nORYI1TDs YpNQ== 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=NLx0TwKbq+gu+HLiqMhkiezFERS2zwkOVdgATsFuvf8=; b=yFYfC9ReDlgPW58s6r4vPV4QndP4VK2vD1/ID80350qpG9bfXX/64uwyx1RROZ+av9 1ccn0Zpf2A6EGKvR2lrMlYRIbOP517qBWsJonXz4sRqlXPvWAWz4FcCV3h4A1R39+MYa Wj1tllcxAnCouOq7X7ykHKZtUKVK4Gxg78I8zohb8V8ORx/Sb0r+rYeMDJ5Kt5z81XQ5 PjlZDsdy4JdJQQQnGwoHUzuCwX80FCSsReQ/HLjP+7nWS0FnZS00pOrfmDxDi5YFK7sR lyOG6wouJ8QLO4XU8qUVSbuDuHjqSzCEkSagzSk76uxEtAFyyYx8LF3Ye8uWVIZiSxyA VhNQ== 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 oe14-20020a17090b394e00b001fdb4973e61si11842590pjb.79.2022.09.07.08.28.45; Wed, 07 Sep 2022 08:28:57 -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 S229736AbiIGOxD (ORCPT + 99 others); Wed, 7 Sep 2022 10:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiIGOwu (ORCPT ); Wed, 7 Sep 2022 10:52:50 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5249DA8968 for ; Wed, 7 Sep 2022 07:52:49 -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 1F2381477; Wed, 7 Sep 2022 07:52:55 -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 803363F71A; Wed, 7 Sep 2022 07:52:47 -0700 (PDT) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, 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 v3 03/10] firmware: arm_ffa: Remove ffa_dev_ops_get() Date: Wed, 7 Sep 2022 15:52:33 +0100 Message-Id: <20220907145240.1683088-4-sudeep.holla@arm.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220907145240.1683088-1-sudeep.holla@arm.com> References: <20220907145240.1683088-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(). Reviewed-by: Jens Wiklander 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.3