From patchwork Wed Mar 5 11:48:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 25756 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D6FA5203C3 for ; Wed, 5 Mar 2014 11:49:40 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id f11sf2035598qae.3 for ; Wed, 05 Mar 2014 03:49:40 -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=QOcVEP3nzMDEHT3MrC3vg3Ri3o98/21V9yZ6h6uhDag=; b=K6Tdbq8H9pP3SgxJ83BmOs6sox9PGAKmWdO5+eJk0W9P0T9UoUCZE00rjINly0BeY9 Zv4/u7c+Y71Z72xX8+v53Yw3GJO8oJ6BHXXtxhAezfqoQKAgpq3wUkaEcqNB30xbWntA qFYL9T1noTwsvhITO+fr04QUSpmyU1+rqLmfvjiGaNdRVenO2/E3OCxdlyk8A6+jel01 2AbNxs66R0OxTaRyb9qJoetXDwK9g7rewyum/f52TXXyNPrkYEYtnHXg2I39jAdHA4tr RQhjCoU4Ankvhda7vUq4wdi90fQAR7ovMmJpx1ip9Q5VgwOW+OpZNHOab4HA2iVbCbq2 irVA== X-Gm-Message-State: ALoCoQnIlB/1x0Cb+EMbBRjQMJqcdFZO9w2rzcEzshOyLsH+6cBAEWa4IivJ9P2F+0Xir4baIRMV X-Received: by 10.236.175.66 with SMTP id y42mr2140240yhl.38.1394020180569; Wed, 05 Mar 2014 03:49:40 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.225 with SMTP id r88ls253934qgr.2.gmail; Wed, 05 Mar 2014 03:49:40 -0800 (PST) X-Received: by 10.220.11.141 with SMTP id t13mr143705vct.30.1394020180424; Wed, 05 Mar 2014 03:49:40 -0800 (PST) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id tg3si615189vec.33.2014.03.05.03.49.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Mar 2014 03:49:40 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.177 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.177; Received: by mail-vc0-f177.google.com with SMTP id if11so871084vcb.36 for ; Wed, 05 Mar 2014 03:49:40 -0800 (PST) X-Received: by 10.58.161.205 with SMTP id xu13mr107678veb.4.1394020180341; Wed, 05 Mar 2014 03:49:40 -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.78.9 with SMTP id i9csp12407vck; Wed, 5 Mar 2014 03:49:39 -0800 (PST) X-Received: by 10.68.133.229 with SMTP id pf5mr6225604pbb.115.1394020179477; Wed, 05 Mar 2014 03:49:39 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si2247367pay.49.2014.03.05.03.49.38; Wed, 05 Mar 2014 03:49:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 S1755044AbaCELth (ORCPT + 9 others); Wed, 5 Mar 2014 06:49:37 -0500 Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:51444 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754806AbaCELtg (ORCPT ); Wed, 5 Mar 2014 06:49:36 -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 s25BmvbD028509; Wed, 5 Mar 2014 11:48:58 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 v6 5/6] pci: Export find_pci_host_bridge() function. Date: Wed, 5 Mar 2014 11:48:56 +0000 Message-Id: <1394020137-1830-6-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1394020137-1830-1-git-send-email-Liviu.Dudau@arm.com> References: <1394020137-1830-1-git-send-email-Liviu.Dudau@arm.com> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.177 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 Tested-by: Tanmay Inamdar --- drivers/pci/host-bridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 *),