Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753262AbbGVUkc (ORCPT ); Wed, 22 Jul 2015 16:40:32 -0400 Received: from terminus.zytor.com ([198.137.202.10]:59339 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753174AbbGVUk2 (ORCPT ); Wed, 22 Jul 2015 16:40:28 -0400 Date: Wed, 22 Jul 2015 13:39:39 -0700 From: tip-bot for Jiang Liu Message-ID: Cc: tony.luck@intel.com, bhelgaas@google.com, jiang.liu@linux.intel.com, marc.zyngier@arm.com, stuart.yoder@freescale.com, linux-kernel@vger.kernel.org, eric.snowberg@oracle.com, bp@alien8.de, grant.likely@linaro.org, wangyijing@huawei.com, davem@davemloft.net, mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de Reply-To: tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, davem@davemloft.net, wangyijing@huawei.com, grant.likely@linaro.org, bp@alien8.de, linux-kernel@vger.kernel.org, eric.snowberg@oracle.com, stuart.yoder@freescale.com, jiang.liu@linux.intel.com, marc.zyngier@arm.com, bhelgaas@google.com, tony.luck@intel.com In-Reply-To: <1436428847-8886-8-git-send-email-jiang.liu@linux.intel.com> References: <1436428847-8886-8-git-send-email-jiang.liu@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] sparc/PCI: Use helper functions to access fields in struct msi_desc Git-Commit-ID: 3bf15f53c963a43c317e65e1709e9f020c04f024 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1960 Lines: 47 Commit-ID: 3bf15f53c963a43c317e65e1709e9f020c04f024 Gitweb: http://git.kernel.org/tip/3bf15f53c963a43c317e65e1709e9f020c04f024 Author: Jiang Liu AuthorDate: Thu, 9 Jul 2015 16:00:42 +0800 Committer: Thomas Gleixner CommitDate: Wed, 22 Jul 2015 18:37:43 +0200 sparc/PCI: Use helper functions to access fields in struct msi_desc Use helper functions to access fields in struct msi_desc, so we could easily refine struct msi_desc later. Signed-off-by: Jiang Liu Acked-by: David S. Miller Cc: Tony Luck Cc: linux-arm-kernel@lists.infradead.org Cc: Bjorn Helgaas Cc: Grant Likely Cc: Marc Zyngier Cc: Stuart Yoder Cc: Yijing Wang Cc: Borislav Petkov Cc: Eric Snowberg Link: http://lkml.kernel.org/r/1436428847-8886-8-git-send-email-jiang.liu@linux.intel.com Signed-off-by: Thomas Gleixner --- arch/sparc/kernel/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index c928bc6..048b406 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c @@ -918,7 +918,7 @@ int arch_setup_msi_irq(struct pci_dev *pdev, struct msi_desc *desc) void arch_teardown_msi_irq(unsigned int irq) { struct msi_desc *entry = irq_get_msi_desc(irq); - struct pci_dev *pdev = entry->dev; + struct pci_dev *pdev = msi_desc_to_pci_dev(entry); struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller; if (pbm->teardown_msi_irq) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/