From patchwork Thu Jan 8 17:06:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 5594171 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 45FB1C058D for ; Thu, 8 Jan 2015 17:08:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3FE5F20340 for ; Thu, 8 Jan 2015 17:08:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 39BAD2026F for ; Thu, 8 Jan 2015 17:08:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755308AbbAHRHt (ORCPT ); Thu, 8 Jan 2015 12:07:49 -0500 Received: from foss-mx-na.foss.arm.com ([217.140.108.86]:58112 "EHLO foss-mx-na.foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932460AbbAHRGa (ORCPT ); Thu, 8 Jan 2015 12:06:30 -0500 Received: from foss-smtp-na-1.foss.arm.com (unknown [10.80.61.8]) by foss-mx-na.foss.arm.com (Postfix) with ESMTP id 1A99D4ED; Thu, 8 Jan 2015 11:06:27 -0600 (CST) Received: from collaborate-mta1.arm.com (highbank-bc01-b06.austin.arm.com [10.112.81.134]) by foss-smtp-na-1.foss.arm.com (Postfix) with ESMTP id BFF475FAD8; Thu, 8 Jan 2015 11:06:24 -0600 (CST) Received: from approximate.cambridge.arm.com (approximate.cambridge.arm.com [10.1.209.148]) by collaborate-mta1.arm.com (Postfix) with ESMTP id 8D97413F78C; Thu, 8 Jan 2015 11:06:23 -0600 (CST) From: Marc Zyngier To: Bjorn Helgaas , Thomas Gleixner , Jiang Liu Cc: , , , Yijing Wang , Suravee Suthikulpanit Subject: [PATCH v2 8/8] PCI/MSI: Drop domain field from msi_controller Date: Thu, 8 Jan 2015 17:06:12 +0000 Message-Id: <1420736772-11088-9-git-send-email-marc.zyngier@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1420736772-11088-1-git-send-email-marc.zyngier@arm.com> References: <1420736772-11088-1-git-send-email-marc.zyngier@arm.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The only two users of that field are not using the msi_controller structure anymore, so drop it altogether. Signed-off-by: Marc Zyngier --- drivers/pci/msi.c | 2 -- include/linux/msi.h | 3 --- 2 files changed, 5 deletions(-) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 003040b..a36894f 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -42,8 +42,6 @@ static struct irq_domain *pci_msi_get_domain(struct pci_dev *dev) struct irq_domain *domain = NULL; domain = dev_get_msi_domain(&dev->dev); - if (!domain && dev->bus->msi) - domain = dev->bus->msi->domain; if (!domain) domain = arch_get_pci_msi_domain(dev); diff --git a/include/linux/msi.h b/include/linux/msi.h index 8ac4a68..692f217 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h @@ -108,9 +108,6 @@ struct msi_controller { struct device *dev; struct device_node *of_node; struct list_head list; -#ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN - struct irq_domain *domain; -#endif int (*setup_irq)(struct msi_controller *chip, struct pci_dev *dev, struct msi_desc *desc);