Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2017975rwe; Fri, 2 Sep 2022 07:24:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5qmfR9WOqu8SGa/h2aOsuYijB4f9QgE2hB77PSNsab8tyUiudfFYfglOL50qDTrgc6jy0q X-Received: by 2002:a17:903:22cd:b0:175:3104:cceb with SMTP id y13-20020a17090322cd00b001753104ccebmr16069482plg.169.1662128677954; Fri, 02 Sep 2022 07:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662128677; cv=none; d=google.com; s=arc-20160816; b=OwUj3kPhWcSk+Ex+0zBTXOOC6sR7EF432Ca/Z6//7XBMspv/VuwddDDPhJvIujHhGz g1dSJrDHA9vcX3KjikzQY0dqbbbNSVtaFMsSiwxUOJKTaEgVrtUT4nuakTYYBN73yywq a8leJUo3vnuObzwdtaOG5jcOLgC+eLNhbZMUBlbfdW1EfkZuQ3tpIVXYP6Rp8d4JjJxt XtvCeRA1NEyAikAWTt5OGWuTbsPC8ponJncXoGL35ohuGjm5G2y1v2LbpS38Romw1fTb AHwKV7y37myFy6zlEIG6znY02LHC6vCI70oxWW09gDW5Y16Is108O3pnZ5g5JFCopSw4 mRWA== 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=XrhKr2iyuQb1gP/vqHD9l5cmS8rUkyGAu1xa03KUGrPAB9IH5y7UtwcMNQ2QiVrY9E fb6S4ATUvPHpTZpyCXVmHMbWjuSgfhwo6szVfzld45FCZFvzJJss5ZZgPheOZyCswvxJ zwJW5UsDCXDZ0JN9fPdbkD/SmB0WOeY7rSxfg9xhm1PLJsiv2SWRYTfrcmHTkXdOoVvg xk87atG4L/wPV3eCz8Vb+6L5x4Ey7VbFWH2LL0OhJ68D93p4IWZCtUEyxfKso3o6BF0A uO/tsYGQuj6n3ituw5ozKtLCW+zBT80CNE5GNbothYxkRkqPiXU2tR+w1qxHznTWE4JW P6Ig== 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 z14-20020a63b90e000000b0041bd0985ea9si1976693pge.671.2022.09.02.07.24.24; Fri, 02 Sep 2022 07:24:37 -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 S238665AbiIBNFG (ORCPT + 99 others); Fri, 2 Sep 2022 09:05:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238753AbiIBNDu (ORCPT ); Fri, 2 Sep 2022 09:03:50 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9206C110D8B for ; Fri, 2 Sep 2022 05:42:18 -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 1BA961516; Fri, 2 Sep 2022 05:40:53 -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 947543F766; Fri, 2 Sep 2022 05:40:45 -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 v2 03/10] firmware: arm_ffa: Remove ffa_dev_ops_get() Date: Fri, 2 Sep 2022 13:40:25 +0100 Message-Id: <20220902124032.788488-4-sudeep.holla@arm.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220902124032.788488-1-sudeep.holla@arm.com> References: <20220902124032.788488-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