From patchwork Wed Jan 9 20:43:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1955371 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 F3EBB3FD40 for ; Wed, 9 Jan 2013 20:48:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933372Ab3AIUsH (ORCPT ); Wed, 9 Jan 2013 15:48:07 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:49156 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934130Ab3AIUn0 (ORCPT ); Wed, 9 Jan 2013 15:43:26 -0500 Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0MK1VF-1Trf330F7N-001ysK; Wed, 09 Jan 2013 21:43:24 +0100 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 3B5DA2A28145; Wed, 9 Jan 2013 21:43:23 +0100 (CET) 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 ZSInttMOS4Xj; Wed, 9 Jan 2013 21:43:22 +0100 (CET) Received: from mailman.adnet.avionic-design.de (mailman.adnet.avionic-design.de [172.20.31.172]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 285152A28149; Wed, 9 Jan 2013 21:43:15 +0100 (CET) Received: from localhost (avionic-0098.adnet.avionic-design.de [172.20.31.233]) by mailman.adnet.avionic-design.de (Postfix) with ESMTP id 03CE81007F9; Wed, 9 Jan 2013 21:43:12 +0100 (CET) From: Thierry Reding To: linux-tegra@vger.kernel.org Cc: Grant Likely , Rob Herring , Russell King , Stephen Warren , Bjorn Helgaas , Andrew Murray , Jason Gunthorpe , Arnd Bergmann , Thomas Petazzoni , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org Subject: [PATCH 06/14] ARM: pci: Keep pci_common_init() around after init Date: Wed, 9 Jan 2013 21:43:06 +0100 Message-Id: <1357764194-12677-7-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1357764194-12677-1-git-send-email-thierry.reding@avionic-design.de> References: <1357764194-12677-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:3FqpPzcP1jcxg7vB4+MkShRkzDny4tK3z5RxwL3y9s6 WzRhxVL7N11uUouWzT5Dg1pxkUbE9eDwyp7bnc4OC5hyniI/LJ c59XPD18zaa9vc5uRQ3ekI/bf7Yq7J3vt6oUqllrxqbnLz9pD/ lTOChfM2nf/LydI3U2R29Vvb4yqgIomWI3L62nMPVV6Q0K43qr KbEySC3Vz+2NHI+JHgupTVtLfUVC1cLhcQGeydRbigBl/PutBm FNKam7GT6cZEJyt1QW+CFxrTn6X7ul2cXwiRfdJFZDjsONXFz3 q9i4f8p0rMjmvCvi8Xtp44zcgDjKiqUkKCFSBQ9Bf6GYg/8rR3 7scGMeJZW97ZusL9TzgGZhDpCiaBvooE94KzlIQnu/c7sx2Guw GUhWyDEDJbT/ZpWvwA7WmbkgtWQ2RGFJQGFlK291av421X7ems U4PxJ 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 Tested-by: Thomas Petazzoni --- 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 379cf32..da7b0c9 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c @@ -413,7 +413,7 @@ static int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) return irq; } -static int __init pcibios_init_resources(int busnr, struct pci_sys_data *sys) +static int pcibios_init_resources(int busnr, struct pci_sys_data *sys) { int ret; struct pci_host_bridge_window *window; @@ -445,7 +445,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 pcibios_init_hw(struct hw_pci *hw, struct list_head *head) { struct pci_sys_data *sys = NULL; int ret; @@ -493,7 +493,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);