From patchwork Fri Oct 23 05:03:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: matt@masarand.com X-Patchwork-Id: 7469761 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3EDA49F36A for ; Fri, 23 Oct 2015 05:05:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B9142202A1 for ; Fri, 23 Oct 2015 05:05:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E57E92021F for ; Fri, 23 Oct 2015 05:05:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751089AbbJWFFo (ORCPT ); Fri, 23 Oct 2015 01:05:44 -0400 Received: from foo.masarand.uk ([104.200.29.153]:36190 "EHLO foo.masarand.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750958AbbJWFFo (ORCPT ); Fri, 23 Oct 2015 01:05:44 -0400 Received: from localhost.localdomain (shredder.masarand.uk [81.187.126.108]) by foo.masarand.uk (Postfix) with ESMTPSA id 0EA22A16F; Fri, 23 Oct 2015 06:05:42 +0100 (BST) From: Matthew Minter To: linux-pci@vger.kernel.org, bhelgaas@google.com, Liviu.Dudau@arm.com, ddaney@caviumnetworks.com, lorenzo.pieralisi@arm.com Cc: Matthew Minter Subject: [PATCH V4 02/29] PCI: Add a prototype for pci_find_host_bridge to pci.h Date: Fri, 23 Oct 2015 06:03:35 +0100 Message-Id: <1445576642-29624-3-git-send-email-matt@masarand.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1445576642-29624-1-git-send-email-matt@masarand.com> References: <1445576642-29624-1-git-send-email-matt@masarand.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The function pci_find_host_bridge is currently only used within drivers/pci/host-bridge.c however the deferred IRQ assignment requires its use in multiple files, therefore add a prototype use within the pci drivers. Signed-off-by: Matthew Minter --- drivers/pci/pci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 24ba9dc..dfdf606 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -80,6 +80,7 @@ void pci_config_pm_runtime_put(struct pci_dev *dev); void pci_pm_init(struct pci_dev *dev); void pci_allocate_cap_save_buffers(struct pci_dev *dev); void pci_free_cap_save_buffers(struct pci_dev *dev); +struct pci_host_bridge *pci_find_host_bridge(struct pci_bus *bus); static inline void pci_wakeup_event(struct pci_dev *dev) {