Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp469097ybh; Tue, 10 Mar 2020 02:13:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu6B2gLc4jaHhQYPfrTNbcOTcxmDc80C+3itnHVo2Z1dgnHP7WZEwEyVomJNXv9aNi136Ue X-Received: by 2002:a05:6830:2009:: with SMTP id e9mr16671998otp.296.1583831622980; Tue, 10 Mar 2020 02:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583831622; cv=none; d=google.com; s=arc-20160816; b=ZcKr3zUgWHrlMuctVvpdv906Olzf3SQJa4YO8K3+bEKEYb0dGRteqFQ9/U/iF80WgX DUzBLzjzYaoxZvTTB5kyc0gdyMNzXt5LiqQajZDTOAd9jfuH3FV2MmL50JR/xMpvUdOB q5EVCDxz/2rov2vwQ/jrpr0oupqYd5E0kOEzjaMstcdgsgHDq+tlf6qX1hR+o3SvVmpt xtGiv3MNlWA5jIhDCf8V/RfEChwBwMSrxHIB8MH0G86RTihS7E80DujmJdD2Yklt5Uxx OkqHNegd49+KPOzm4brYaTacNHG43x+FzlfkxLM8oAapjEgQZvWy52jbbvwZlZrOznGg jvqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=MuBlvpJOlm9UmtTzXkTL8v2dcNyVBu/ErUDdRqlMsSE=; b=uP9waRbjkh336fqkcrVNceC+jjrfD7t81DxNZU3kkNL9LeW4TjPxbpX7j8cV9eblRo ytH/+5pO2MdrzO8yYae1yiZ8/jcn53o7ytcH+Hhvnm6JF9N0tTkcYrytc/r+Jq2j4qB1 NbtoaQU/ySaEZzafe0BBrQyGbEGrJ2iev2HBtxnyBtENgxp03t0FKZToDksak29jTZO8 LrIRiuu35yg2BLe15+eqFDw+wMSSP8oR1RHeYyPmLkoJZKzHCMu8MS64K6NARJngj/TG OVhkW9CXwX+DFeIPcmEsSgwC1rfH/HDIlWxSHo0Do+d2Yb+QHVngAegSHqA+CElBfEsL TdMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w79si5354430oia.18.2020.03.10.02.13.31; Tue, 10 Mar 2020 02:13:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726548AbgCJJMi (ORCPT + 99 others); Tue, 10 Mar 2020 05:12:38 -0400 Received: from 8bytes.org ([81.169.241.247]:50500 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbgCJJMf (ORCPT ); Tue, 10 Mar 2020 05:12:35 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 4F2504B7; Tue, 10 Mar 2020 10:12:32 +0100 (CET) From: Joerg Roedel To: iommu@lists.linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, virtualization@lists.linux-foundation.org, Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Rob Clark , Sean Paul , Will Deacon , Robin Murphy , Joerg Roedel , Matthias Brugger , Thierry Reding , Jean-Philippe Brucker , Andy Gross , Bjorn Andersson , Joerg Roedel Subject: [PATCH 03/15] drm/msm/mdp5: Remove direct access of dev->iommu_fwspec Date: Tue, 10 Mar 2020 10:12:17 +0100 Message-Id: <20200310091229.29830-4-joro@8bytes.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200310091229.29830-1-joro@8bytes.org> References: <20200310091229.29830-1-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel Use the accessor functions instead of directly dereferencing dev->iommu_fwspec. Signed-off-by: Joerg Roedel --- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c index e43ecd4be10a..1252e1d76340 100644 --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c @@ -725,7 +725,7 @@ struct msm_kms *mdp5_kms_init(struct drm_device *dev) if (config->platform.iommu) { iommu_dev = &pdev->dev; - if (!iommu_dev->iommu_fwspec) + if (!dev_iommu_fwspec_get(iommu_dev)) iommu_dev = iommu_dev->parent; aspace = msm_gem_address_space_create(iommu_dev, -- 2.17.1