From patchwork Mon Jan 10 01:50:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 12708110 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 D9453C433EF for ; Mon, 10 Jan 2022 01:53:56 +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=lPnlZeFio0M1KbsPVlDXPEqrM1QKFPDhaCGT43BXpkQ=; b=P90W+bFkzJZJRn ON4yUVYu8QZc3SNmLsn2wU43VXP4NqWjh8z/kyYSyI6752164z6XLZrLrS2Pz7/oqF9vgL85/+N75 xxGggn1jrRKO/0HAZ75PDfBRkcZsU03h4o5+svxXOArm8nqzL7Gh2s/G0s9BLGBFoEpSiW2R1O4Ho ufPWsjYm/0uQjyqAGj8ifzApiQwsJCta7rr0FHEPtPXK6GVbBUc82uKqsD4TZwTgCA5r+V5Wnduky MYgtZQvyc9uhbiVserKyBwLugKPy64u1zPUlDF1WBpRlYPf5b7wOZDTdMGPdems4D8QU1nfSJdAsp oR6oSj/dTOT8fQVkDEug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6jrQ-008mpp-W9; Mon, 10 Jan 2022 01:52:37 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6jpb-008lfc-0E for linux-arm-kernel@lists.infradead.org; Mon, 10 Jan 2022 01:50:44 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B4966B81118; Mon, 10 Jan 2022 01:50:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0F16C36AE3; Mon, 10 Jan 2022 01:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641779440; bh=19RdElfSftNYfU757yNma9VL06wj5lXcpWlMxa9HNbc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S+4GFUiAIuMHJnaBrrcj0t3vWdGnXEv/7Tyt1J0siotacX74qGcwAZyet3uObo4AA 7UfefnRFSmX/0Ucw7Ecv7lDh2J5/jE/F+t2SCyoNNcl6fFp5zhmC2rdzGEXQam6+Z9 te82X31FSsi1j6dJMdhEFJt7AuRXixox8P2pWw/HdwlqNcsEt8tkXC6QJSXAe9vucb 21y24jd5pjmwhMNOIoO0UOQPdVPq7jK1EPtGjrELyEMluWGc3M2SWfv9UD7zmM67Wj 7yI4Cxc2mVqBc6V3CmujbrT81uycvh60fuS0J5v/OUSYngsdOtxcbfntazXgmTbfkc FKypoEoUy/jbA== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Marc Zyngier , Lorenzo Pieralisi , Bjorn Helgaas Cc: pali@kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH v2 08/23] PCI: aardvark: Use dev_fwnode() instead of of_node_to_fwnode(dev->of_node) Date: Mon, 10 Jan 2022 02:50:03 +0100 Message-Id: <20220110015018.26359-9-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220110015018.26359-1-kabel@kernel.org> References: <20220110015018.26359-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220109_175043_241446_D7C88A54 X-CRM114-Status: GOOD ( 13.64 ) 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 Use simple dev_fwnode(dev) instead of struct device_node *node = dev->of_node; of_node_to_fwnode(node) especially since the node variable is not used elsewhere in the function. Signed-off-by: Marek BehĂșn --- drivers/pci/controller/pci-aardvark.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c index 5ab107f65c6c..3f7515814167 100644 --- a/drivers/pci/controller/pci-aardvark.c +++ b/drivers/pci/controller/pci-aardvark.c @@ -1301,7 +1301,6 @@ static struct msi_domain_info advk_msi_domain_info = { static int advk_pcie_init_msi_irq_domain(struct advk_pcie *pcie) { struct device *dev = &pcie->pdev->dev; - struct device_node *node = dev->of_node; phys_addr_t msi_msg_phys; mutex_init(&pcie->msi_used_lock); @@ -1320,7 +1319,7 @@ static int advk_pcie_init_msi_irq_domain(struct advk_pcie *pcie) return -ENOMEM; pcie->msi_domain = - pci_msi_create_irq_domain(of_node_to_fwnode(node), + pci_msi_create_irq_domain(dev_fwnode(dev), &advk_msi_domain_info, pcie->msi_inner_domain); if (!pcie->msi_domain) {