From patchwork Tue Jul 1 18:43:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 32926 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9F04F203C0 for ; Tue, 1 Jul 2014 18:45:22 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id lx4sf62453924iec.8 for ; Tue, 01 Jul 2014 11:45:22 -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=LbUgpi9yKOczJcQVpBs22bDJ+H9zPJOf3OH9Ng/FAlM=; b=CXULW1PhrazNIZPaAU8bw8Dz4ZynY5N1scLh6mZYlwqNdZbB6cHEqArRj1UvZaBN+V OjqT/0crSD62PQJm58Gnp8BoFbDvtUGpqaAjSZC0GGPrq8+G3NBQ23pY+Alg1G7NrEuc LK8Kc8eIbOql+IJp/5y6LHXdmrrO8gqAlhnezoRwc6bCJ/J/WeZKcFrlD8dytb2wHugO lLNRNN7YP0XwV5tsT/yES4NQ6gTsxlhXzgtTWiHuW07b+SMXcH2W3ZPiQzC9Fl5ogQat +ROT/bNvNZ5/YnDU8s2t62TSVp9r0ne2UvwSn4CzuYPwZzeq0IWghkf7k0dOmo43YzKV DUqg== X-Gm-Message-State: ALoCoQmdBgRXlbSAgyhChrxLeNnJq4OJtot52ihHNAyjeZw7HDelFppfzbrchRtNNL6YLKsvCmpk X-Received: by 10.182.115.133 with SMTP id jo5mr27496737obb.38.1404240322121; Tue, 01 Jul 2014 11:45:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.107.198 with SMTP id h64ls2025897qgf.66.gmail; Tue, 01 Jul 2014 11:45:21 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr2412741vcb.32.1404240321931; Tue, 01 Jul 2014 11:45:21 -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 f2si9725129vej.7.2014.07.01.11.45.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 11:45:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.178 as permitted sender) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id oy12so10100304veb.37 for ; Tue, 01 Jul 2014 11:45:21 -0700 (PDT) X-Received: by 10.53.13.200 with SMTP id fa8mr1626731vdd.57.1404240321838; Tue, 01 Jul 2014 11:45:21 -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.221.37.5 with SMTP id tc5csp236920vcb; Tue, 1 Jul 2014 11:45:21 -0700 (PDT) X-Received: by 10.50.20.97 with SMTP id m1mr42746889ige.28.1404240321272; Tue, 01 Jul 2014 11:45:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sp6si27828542pac.150.2014.07.01.11.45.20; Tue, 01 Jul 2014 11:45:20 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932475AbaGASoh (ORCPT + 27 others); Tue, 1 Jul 2014 14:44:37 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:50166 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932432AbaGASoe (ORCPT ); Tue, 1 Jul 2014 14:44:34 -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 s61IhYJW027921; Tue, 1 Jul 2014 19:43:38 +0100 From: Liviu Dudau To: linux-pci , Bjorn Helgaas , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Arnd Bergmann , linaro-kernel , Tanmay Inamdar , Grant Likely , Sinan Kaya , Jingoo Han , Kukjin Kim , Suravee Suthikulanit Cc: LKML , Device Tree ML , LAKML Subject: [PATCH v8 2/9] pci: Export find_pci_host_bridge() function. Date: Tue, 1 Jul 2014 19:43:27 +0100 Message-Id: <1404240214-9804-3-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1404240214-9804-1-git-send-email-Liviu.Dudau@arm.com> References: <1404240214-9804-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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.178 as permitted sender) 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 0e5f3c9..36c669e 100644 --- a/drivers/pci/host-bridge.c +++ b/drivers/pci/host-bridge.c @@ -16,12 +16,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 *),