From patchwork Fri Mar 14 15:34:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 26268 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 60E16202DD for ; Fri, 14 Mar 2014 15:39:05 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf6353939pbc.0 for ; Fri, 14 Mar 2014 08:39:04 -0700 (PDT) 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=pqR2tPGcKU1/CKwzSYtkH/kdVoN4qrzg03yXcSrdovU=; b=ODTN/2ZCKoq71ypNhXYZmV7q3cxZMkgeLKNfY4FOq/LGGtkYlJQ1io3fm/xaXdoUgw HO+jG+f7/e9B9QgsostT77ZIKmPmBvDpvnbENw6TKcQqCHTSH7lPsuCr4m9wQIeWZmFU g8QTSS5d/gH8YvFBoSgV2Vua+nSu33HIPoHcaO26H9o9VPYdydQhx0xX7G5Kfjx+4mTK lpHHrWE36nkeApvFh7Ssk4BYW1XQq644zpTRp5fv/X+x6NaUxQ1dI000EGsbV1DFC81t 1VCM2lLUcudTnTkgjWVaivXpYPp4bnFJW2nwjWEySruQkDiPyiE7T+uZS97mT8abDyAU r9Yw== X-Gm-Message-State: ALoCoQnHJTtx+r3ZNuzQTIUmck8ds2sTQclPx97rODPjwUQjV5kJKnZ0UoqQURiE7P2EYOjDXTHm X-Received: by 10.66.26.146 with SMTP id l18mr3295522pag.2.1394811544649; Fri, 14 Mar 2014 08:39:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.39 with SMTP id g36ls744657qgd.25.gmail; Fri, 14 Mar 2014 08:39:04 -0700 (PDT) X-Received: by 10.220.12.140 with SMTP id x12mr6717264vcx.19.1394811544484; Fri, 14 Mar 2014 08:39:04 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id tz5si2234415vdc.72.2014.03.14.08.39.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Mar 2014 08:39:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id jw12so2970495veb.9 for ; Fri, 14 Mar 2014 08:39:04 -0700 (PDT) X-Received: by 10.52.15.132 with SMTP id x4mr1296241vdc.31.1394811544402; Fri, 14 Mar 2014 08:39:04 -0700 (PDT) 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 i9csp28077vck; Fri, 14 Mar 2014 08:39:03 -0700 (PDT) X-Received: by 10.68.164.229 with SMTP id yt5mr9727866pbb.28.1394811543483; Fri, 14 Mar 2014 08:39:03 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si6056686pba.271.2014.03.14.08.39.00; Fri, 14 Mar 2014 08:39:00 -0700 (PDT) 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 S1755958AbaCNPix (ORCPT + 26 others); Fri, 14 Mar 2014 11:38:53 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:50942 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755413AbaCNPfJ (ORCPT ); Fri, 14 Mar 2014 11:35:09 -0400 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 s2EFYWID004053; Fri, 14 Mar 2014 15:34:32 GMT From: Liviu Dudau To: linux-pci , Bjorn Helgaas , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , linaro-kernel , Arnd Bergmann Cc: LKML , "devicetree@vger.kernel.org" , LAKML , Tanmay Inamdar , Grant Likely Subject: [PATCH v7 5/6] pci: Export find_pci_host_bridge() function. Date: Fri, 14 Mar 2014 15:34:31 +0000 Message-Id: <1394811272-1547-6-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1394811272-1547-1-git-send-email-Liviu.Dudau@arm.com> References: <1394811272-1547-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.128.178 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 *),