From patchwork Thu Jul 26 19:55:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1244831 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 793C8DFFCE for ; Thu, 26 Jul 2012 20:16:02 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SuUNj-0006RT-Gh; Thu, 26 Jul 2012 20:09:59 +0000 Received: from moutng.kundenserver.de ([212.227.126.186]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SuU9r-00043m-MH for linux-arm-kernel@lists.infradead.org; Thu, 26 Jul 2012 19:55:40 +0000 Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MHtgv-1SxWYg2EG5-004C0d; Thu, 26 Jul 2012 21:55:15 +0200 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id D6A4F2A28305; Thu, 26 Jul 2012 21:55:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at avionic-design.de Received: from mailbox.adnet.avionic-design.de ([127.0.0.1]) by localhost (mailbox.avionic-design.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ML+ZkfjQVLqA; Thu, 26 Jul 2012 21:55:13 +0200 (CEST) Received: from localhost (avionic-0098.adnet.avionic-design.de [172.20.31.233]) (Authenticated sender: thierry.reding) by mailbox.adnet.avionic-design.de (Postfix) with ESMTPA id 55F492A282E7; Thu, 26 Jul 2012 21:55:13 +0200 (CEST) From: Thierry Reding To: linux-tegra@vger.kernel.org Subject: [PATCH v3 01/10] PCI: Keep pci_fixup_irqs() around after init Date: Thu, 26 Jul 2012 21:55:03 +0200 Message-Id: <1343332512-28762-2-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1343332512-28762-1-git-send-email-thierry.reding@avionic-design.de> References: <1343332512-28762-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:C77YcInZp2hRod0sJx3HRzVcrdaYrrsxJwFhBHbxdCV amO+dXEKwAMG7CQIqqsm5fDZHVAklbMnDz8wiZbPm3isKZ9wDu GctzgJSWjPDws5IeYqSaO02rWRgSU1Mp3iccGJFjygdAKvggjs 9R6D5yccPV2VBkU8ezrRljnQUCdNOn4kWovCkz+8KbVwHYUhXS kFLmX7ttW1Csvl7UHQU1BPrzMSgtk8JiOlD1fm4P61re6UAnhW ZGB2qq20ecIsQZbZc/e8bJqyeMQaIX+OHTIEsZUM6NjLnTqHHa VIcnUswM7tbqGFX86gO5ZUyDCxi4ux6+r2khE3tvhbTLX8dL2M qhuTostTIsnJA9KiG5GImZfHi/w5E8bu5SmYmxjRoyJdb6G7NO ZQta34bPyflD4ZkPO/J6rhP4FyjZdhHKPC62KsupLdz+ZvTykK 0zUVM X-Spam-Note: CRM114 invocation failed X-Spam-Note: SpamAssassin invocation failed Cc: Mitch Bradley , Russell King , Arnd Bergmann , Stephen Warren , linux-pci@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, Rob Herring , Grant Likely , Olof Johansson , Colin Cross , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org When using deferred driver probing, PCI host controller drivers may actually require this function after the init stage. Signed-off-by: Thierry Reding Acked-by: Bjorn Helgaas --- Changes in v3: - none Changes in v2: - use __devinit annotations drivers/pci/setup-irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/setup-irq.c b/drivers/pci/setup-irq.c index eb219a1..f0bcd56 100644 --- a/drivers/pci/setup-irq.c +++ b/drivers/pci/setup-irq.c @@ -18,7 +18,7 @@ #include -static void __init +static void __devinit pdev_fixup_irq(struct pci_dev *dev, u8 (*swizzle)(struct pci_dev *, u8 *), int (*map_irq)(const struct pci_dev *, u8, u8)) @@ -54,7 +54,7 @@ pdev_fixup_irq(struct pci_dev *dev, pcibios_update_irq(dev, irq); } -void __init +void __devinit pci_fixup_irqs(u8 (*swizzle)(struct pci_dev *, u8 *), int (*map_irq)(const struct pci_dev *, u8, u8)) {