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: 1244511 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 8B9A7E009B for ; Thu, 26 Jul 2012 19:55:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752694Ab2GZTzn (ORCPT ); Thu, 26 Jul 2012 15:55:43 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:59884 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752664Ab2GZTzl (ORCPT ); Thu, 26 Jul 2012 15:55:41 -0400 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 Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Grant Likely , Rob Herring , devicetree-discuss@lists.ozlabs.org, Russell King , linux-arm-kernel@lists.infradead.org, Colin Cross , Olof Johansson , Stephen Warren , Mitch Bradley , Arnd Bergmann 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 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.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)) {