From patchwork Thu Jul 26 19:55:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1244441 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3956B3FDCA for ; Thu, 26 Jul 2012 19:55:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752339Ab2GZTz3 (ORCPT ); Thu, 26 Jul 2012 15:55:29 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:64964 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752595Ab2GZTz1 (ORCPT ); Thu, 26 Jul 2012 15:55:27 -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 0MIAwM-1SyLlq158I-003N1X; Thu, 26 Jul 2012 21:55:16 +0200 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 4D9DF2A282E9; Thu, 26 Jul 2012 21:55:15 +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 RxdFhnLCoLfF; Thu, 26 Jul 2012 21:55:14 +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 29F612A28161; Thu, 26 Jul 2012 21:55:14 +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 02/10] ARM: pci: Keep pci_common_init() around after init Date: Thu, 26 Jul 2012 21:55:04 +0200 Message-Id: <1343332512-28762-3-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:0BuSOpIuU4uUeG+WahZFTi3nQKn/b/knHgCYMT9UQje HEv5Ui5QLsRcOk57jK98nSE6V2FJI+MBYXkZtHX/DY6lGRErXz dZmJ7woZZmNcVZyxQD88Qpa5Xe3KO/nCtr0VfiRaFof5J4dUjJ cSAu5Eu5fpMWKxB2fXxlAVdkJ7r2h9gy3qC+cnWmu6Ha+deKcZ 6UxikwpVEORDAaKKggBa6PFioy7VBznBCIgZsZn2xglKd5CK7f ZCrLKvFQ4lTLzueb9CSB+FeYjW31FapLVwdzwWid5uQPMG3Vp6 jecKCvSOm6Cz1UzzYKyowyL/zcdhCSxns+sOPMPOimCaNyha+c v/0uTdX4t6s9Rj3OABXjEkXvpNnvc7HhevbpCHE2G9FOnhqD0I MLcY1JdRdeOynids3ysTWXAZDoLBJcaoFArNvA+ndS4Vygk9qr Sw1BY 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 --- Changes in v3: - none Changes in v2: - use __devinit annotations arch/arm/kernel/bios32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 70dabb9..5c3dd59 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c @@ -456,7 +456,7 @@ static int __init pcibios_init_resources(int busnr, struct pci_sys_data *sys) return 0; } -static void __init pcibios_init_hw(struct hw_pci *hw, struct list_head *head) +static void __devinit pcibios_init_hw(struct hw_pci *hw, struct list_head *head) { struct pci_sys_data *sys = NULL; int ret; @@ -504,7 +504,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 __devinit pci_common_init(struct hw_pci *hw) { struct pci_sys_data *sys; LIST_HEAD(head);