From patchwork Fri Apr 29 11:39:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 12831883 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3A91C433F5 for ; Fri, 29 Apr 2022 11:41:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XuYQTeEJ7YU+hbToELr98xz4vGxa4UYv7eCAi/h4LvY=; b=1WV+OtUGYsLIv7 NXC+7etOmCuvgTJ86Cq1P4EeqqxqOMeOFYhFy4oRNgy39lM1R2s18sQsaLXCjnFuwr3ZbxLGdDHm4 gbHaIaxG/PU5t2AAX+nm/UwcOt7VtLPx0QTpmMEPgh3hg/18ux3klE/7QZ1yeUthuV2LNw7722N3K yx6hSaTzzaMj1koqvshqvOIrryYPRoyxavX9aqf55kzmvE7B2p0cL6dLN/RwdpvR0oX/jIXAni1W/ X8iNZ5iLoeQUPwDPaeQeI9J+cwaHXfxe+QDFTk5jRAXIVHu9F0CX0ljC/SvXsQ6Tox1wXbyuxrX2t DLi9No08+clCdj7t1OIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkOzF-00AzFf-4O; Fri, 29 Apr 2022 11:40:37 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkOyh-00Az9o-GO for linux-arm-kernel@lists.infradead.org; Fri, 29 Apr 2022 11:40:05 +0000 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 C8ED31474; Fri, 29 Apr 2022 04:40:02 -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 D988B3F73B; Fri, 29 Apr 2022 04:40:01 -0700 (PDT) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, op-tee@lists.trustedfirmware.org Cc: Sudeep Holla , Arunachalam Ganapathy , Jens Wiklander , Sumit Garg Subject: [PATCH 4/4] tee: optee: Use ffa_dev_get_drvdata to fetch driver_data Date: Fri, 29 Apr 2022 12:39:46 +0100 Message-Id: <20220429113946.2087145-4-sudeep.holla@arm.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220429113946.2087145-1-sudeep.holla@arm.com> References: <20220429113946.2087145-1-sudeep.holla@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220429_044003_624341_EFBF3D15 X-CRM114-Status: GOOD ( 10.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Signed-off-by: Sudeep Holla --- drivers/tee/optee/ffa_abi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tee/optee/ffa_abi.c b/drivers/tee/optee/ffa_abi.c index a5eb4ef46971..b819a65cf89d 100644 --- a/drivers/tee/optee/ffa_abi.c +++ b/drivers/tee/optee/ffa_abi.c @@ -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);