From patchwork Thu Sep 20 07:21:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1483041 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 536EE3FD40 for ; Thu, 20 Sep 2012 07:24:12 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TEb5T-0002Qm-39; Thu, 20 Sep 2012 07:22:15 +0000 Received: from moutng.kundenserver.de ([212.227.126.186]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TEb5D-0002PZ-WB for linux-arm-kernel@lists.infradead.org; Thu, 20 Sep 2012 07:22:01 +0000 Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LcEVR-1TxrbK1wNp-00j8RI; Thu, 20 Sep 2012 09:21:55 +0200 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id DD6E62A28302; Thu, 20 Sep 2012 09:21:54 +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 8ewnPOmjMnPE; Thu, 20 Sep 2012 09:21:53 +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 DA08A2A282F4; Thu, 20 Sep 2012 09:21:52 +0200 (CEST) From: Thierry Reding To: Russell King Subject: [PATCH v2 1/2] ARM: pci: Keep pci_common_init() around after init Date: Thu, 20 Sep 2012 09:21:49 +0200 Message-Id: <1348125710-28726-2-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1348125710-28726-1-git-send-email-thierry.reding@avionic-design.de> References: <1348125710-28726-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:/TMVOkrbRjkMZh4qYWb+/iPTVzMkaGQDuHSlTwoArmu hGVCqcsIgnyFBpUZ834auogCJ0cBKr7eb0Uw97Wku4oCO3IQz9 ZYECuVpbwDYZidfajo3mCekE8pDY8UGiBjlysWCuTXF6eTfhi6 xCcD0Zs2Ap+vVwENiFukXvfM2GGEN11Bd6hBAwDopQTBg/50SW BvIkzoGmIuZplbp9djZl1Cp+n0B1/zzj7ExwmenRm39n9A/cxa lr3GKEXHWiulx7vLpNE5fOC70ZJ85LoYkQjqoJpOB0EZN2zMb+ uuwMC6FpLUL5mMWhJhYJf/82vXKRqy4K6YqLJruBVvsDMUsWJO M4UYfgq6xiHIWkmpVlRN7eMyid0LAOkrNQs7KIbBCIw68JHLlz 8Xbn8yACnhPXN29BXMEXnbsP/lQc0HlQsRIt0OKP0hlEcWjHJz wkAXv X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.186 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Bjorn Helgaas , linux-kernel@vger.kernel.org, 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 --- Changes in v2: - remove __devinit annotation from pcibios_swizzle - remove __init annotations altogether arch/arm/kernel/bios32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 2b2f25e..6f1d75f 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c @@ -388,7 +388,7 @@ EXPORT_SYMBOL(pcibios_fixup_bus); * PCI standard swizzle is implemented on plug-in cards and Cardbus based * PCI extenders, so it can not be ignored. */ -static u8 __devinit pcibios_swizzle(struct pci_dev *dev, u8 *pin) +static u8 pcibios_swizzle(struct pci_dev *dev, u8 *pin) { struct pci_sys_data *sys = dev->sysdata; int slot, oldpin = *pin; @@ -423,7 +423,7 @@ static int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) return irq; } -static void __init pcibios_init_hw(struct hw_pci *hw, struct list_head *head) +static void pcibios_init_hw(struct hw_pci *hw, struct list_head *head) { struct pci_sys_data *sys = NULL; int ret; @@ -472,7 +472,7 @@ static void __init pcibios_init_hw(struct hw_pci *hw, struct list_head *head) } } -void __init pci_common_init(struct hw_pci *hw) +void pci_common_init(struct hw_pci *hw) { struct pci_sys_data *sys; LIST_HEAD(head);