From patchwork Tue Mar 4 15:50:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 25691 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4B50D2066C for ; Tue, 4 Mar 2014 15:53:42 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id up15sf14506330pbc.6 for ; Tue, 04 Mar 2014 07:53:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=ASliKroT1seWAayrAVoLW/q8ZuIWhk8uOOtN8nM2U1c=; b=mmmTGiLvI9uHTsR/W4cvfP9VeiB3We+NvEmBWGNa/WpQz0X7c33Gz0LXnzhuHqpViO rnJjC5cBISo9uyV0LKSzW22UQuclmsRWiNaAqebn6vXK/JrGaMH92PUyT9zc/Jgmtmy/ C3D01ryvyLf4c5W5/B/lcmUW7K7iSN6gdwO0UU2qBv7Xnxh2QNIGNu3IooGIqkv7JF1d X1WtXkJ/QwDoGdgksADMpLfBagEJa5+sQ0NxjVRqx//xNnLj0r2KEcAT8l5+bNxaaK0d hR2BDb5WFWBqYD62Ery+Gq2i+ePLw1nya4sXD0m0w3teaPMGaGlrZhIj8HZQGhPByEl4 sMKQ== X-Gm-Message-State: ALoCoQmXG0AxJinO0s8ZNACWIr0kUnOb6iYT08YMjwlnrh7cvxXD7oX5Bq4xo+hF8dzEbiF9Ktim X-Received: by 10.66.227.103 with SMTP id rz7mr2515998pac.37.1393948421516; Tue, 04 Mar 2014 07:53:41 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.117 with SMTP id 108ls2651500qgw.77.gmail; Tue, 04 Mar 2014 07:53:41 -0800 (PST) X-Received: by 10.52.113.1 with SMTP id iu1mr74217vdb.35.1393948421389; Tue, 04 Mar 2014 07:53:41 -0800 (PST) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id j20si5888585vcx.94.2014.03.04.07.53.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Mar 2014 07:53:41 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id id10so4598936vcb.27 for ; Tue, 04 Mar 2014 07:53:41 -0800 (PST) X-Received: by 10.221.26.10 with SMTP id rk10mr201230vcb.0.1393948421311; Tue, 04 Mar 2014 07:53:41 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.130.193 with SMTP id u1csp136145vcs; Tue, 4 Mar 2014 07:53:40 -0800 (PST) X-Received: by 10.68.60.225 with SMTP id k1mr398766pbr.58.1393948420245; Tue, 04 Mar 2014 07:53:40 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xn1si14692181pbc.8.2014.03.04.07.53.39; Tue, 04 Mar 2014 07:53:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755095AbaCDPxC (ORCPT + 26 others); Tue, 4 Mar 2014 10:53:02 -0500 Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:51516 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754542AbaCDPuv (ORCPT ); Tue, 4 Mar 2014 10:50:51 -0500 Received: from e106497-lin.cambridge.arm.com (e106497-lin.cambridge.arm.com [10.1.195.170]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id s24Fo4cY013537; Tue, 4 Mar 2014 15:50:06 GMT From: Liviu Dudau To: linux-pci , Bjorn Helgaas , Catalin Marinas , Will Deacon , linaro-kernel Cc: Benjamin Herrenschmidt , LKML , "devicetree@vger.kernel.org" , LAKML , Tanmay Inamdar , Arnd Bergmann Subject: [PATCH v5 6/7] pci: Export find_pci_host_bridge() function. Date: Tue, 4 Mar 2014 15:50:03 +0000 Message-Id: <1393948204-11555-7-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1393948204-11555-1-git-send-email-Liviu.Dudau@arm.com> References: <1393948204-11555-1-git-send-email-Liviu.Dudau@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: liviu.dudau@arm.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This is a useful function and we should make it visible outside the generic PCI code. Export it as a GPL symbol. Signed-off-by: Liviu Dudau diff --git a/drivers/pci/host-bridge.c b/drivers/pci/host-bridge.c index 06ace62..8708b652 100644 --- a/drivers/pci/host-bridge.c +++ b/drivers/pci/host-bridge.c @@ -17,12 +17,13 @@ static struct pci_bus *find_pci_root_bus(struct pci_bus *bus) return bus; } -static struct pci_host_bridge *find_pci_host_bridge(struct pci_bus *bus) +struct pci_host_bridge *find_pci_host_bridge(struct pci_bus *bus) { struct pci_bus *root_bus = find_pci_root_bus(bus); return to_pci_host_bridge(root_bus->bridge); } +EXPORT_SYMBOL_GPL(find_pci_host_bridge); void pci_set_host_bridge_release(struct pci_host_bridge *bridge, void (*release_fn)(struct pci_host_bridge *),