From patchwork Mon Nov 17 10:21:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangyijing X-Patchwork-Id: 40884 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9664824035 for ; Mon, 17 Nov 2014 09:41:51 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id l18sf320330wgh.2 for ; Mon, 17 Nov 2014 01:41:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=/BK69UBsR9SPU1qoMUuWMWLFo145rDvD9uyULU0IUAg=; b=UuuF807bN2adm3+CKDqMK7E+Xko6wgRxcRiOkJhQs/I/ZysQkjls7H3ebF6QUSamF9 ehzQGIs1pVtR02eTRPPYtlbqBdD9UrjqDDvfXRtNQ5+mEAtPNMFfECfBY1lxNXsyYRXb WJX0gmjMNq8IrTRwhjVj2BHfZ++eE61qAupIKCoN5ZstC0Xwstbnz4Xp4RHcHkNZ+xMW GCNs/8CP0HYMyBJY5U9gaIEHhfBzgW4mONd6I1M2XtzpKdLVxS3y0Qm3IK6ZR1YLEHaA HZiE2RnzZXeM/s1hDG5JQ5FMB1Oy7Urz3J2Oe11wigDnv3/PM7e0EEWzqFQyxmoS92ty Uk8Q== X-Gm-Message-State: ALoCoQnI6beQUZu40URDAvc8q8w2phXTxEvpNbVEg+FA0mZSuMfpsxiHYW6BoGSaMWTqZ1GIVJuZ X-Received: by 10.152.10.233 with SMTP id l9mr5736995lab.0.1416217310865; Mon, 17 Nov 2014 01:41:50 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.200 with SMTP id 8ls749276law.102.gmail; Mon, 17 Nov 2014 01:41:50 -0800 (PST) X-Received: by 10.152.3.229 with SMTP id f5mr8638012laf.94.1416217310686; Mon, 17 Nov 2014 01:41:50 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id qr5si51151450lbb.54.2014.11.17.01.41.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Nov 2014 01:41:50 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id n15so15839590lbi.18 for ; Mon, 17 Nov 2014 01:41:50 -0800 (PST) X-Received: by 10.112.52.37 with SMTP id q5mr25869468lbo.32.1416217310282; Mon, 17 Nov 2014 01:41:50 -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.112.184.201 with SMTP id ew9csp1127221lbc; Mon, 17 Nov 2014 01:41:49 -0800 (PST) X-Received: by 10.66.140.8 with SMTP id rc8mr28816310pab.83.1416217308647; Mon, 17 Nov 2014 01:41:48 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si29732770pdm.32.2014.11.17.01.41.47 for ; Mon, 17 Nov 2014 01:41:48 -0800 (PST) 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 S1752150AbaKQJk7 (ORCPT + 26 others); Mon, 17 Nov 2014 04:40:59 -0500 Received: from szxga01-in.huawei.com ([119.145.14.64]:43139 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751879AbaKQJkw (ORCPT ); Mon, 17 Nov 2014 04:40:52 -0500 Received: from 172.24.2.119 (EHLO szxeml462-hub.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CEO10130; Mon, 17 Nov 2014 17:40:44 +0800 (CST) Received: from localhost.localdomain (10.175.100.166) by szxeml462-hub.china.huawei.com (10.82.67.205) with Microsoft SMTP Server id 14.3.158.1; Mon, 17 Nov 2014 17:40:29 +0800 From: Yijing Wang To: Bjorn Helgaas CC: , , Xinwei Hu , Wuyun , , Russell King , , Thomas Gleixner , Benjamin Herrenschmidt , , Tony Luck , , Thierry Reding , Liviu Dudau , , Yijing Wang Subject: [RFC PATCH 03/16] PCI: Clean up pci_scan_bus() Date: Mon, 17 Nov 2014 18:21:37 +0800 Message-ID: <1416219710-26088-4-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1416219710-26088-1-git-send-email-wangyijing@huawei.com> References: <1416219710-26088-1-git-send-email-wangyijing@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.100.166] X-CFilter-Loop: Reflected 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: wangyijing@huawei.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.217.173 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: , No one uses it, clean up. Signed-off-by: Yijing Wang --- drivers/pci/probe.c | 20 -------------------- include/linux/pci.h | 1 - 2 files changed, 0 insertions(+), 21 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index fc99e88..0a02fc2 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -2125,26 +2125,6 @@ struct pci_bus *pci_scan_bus_parented(struct device *parent, } EXPORT_SYMBOL(pci_scan_bus_parented); -struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, - void *sysdata) -{ - LIST_HEAD(resources); - struct pci_bus *b; - - pci_add_resource(&resources, &ioport_resource); - pci_add_resource(&resources, &iomem_resource); - pci_add_resource(&resources, &busn_resource); - b = pci_create_root_bus(NULL, bus, ops, sysdata, &resources); - if (b) { - pci_scan_child_bus(b); - pci_bus_add_devices(b); - } else { - pci_free_resource_list(&resources); - } - return b; -} -EXPORT_SYMBOL(pci_scan_bus); - /** * pci_rescan_bus_bridge_resize - scan a PCI bus for devices. * @bridge: PCI bridge for the bus to scan diff --git a/include/linux/pci.h b/include/linux/pci.h index 5be8db4..f8045d6 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -769,7 +769,6 @@ struct pci_bus *pci_find_bus(int domain, int busnr); void pci_bus_add_devices(const struct pci_bus *bus); struct pci_bus *pci_scan_bus_parented(struct device *parent, int bus, struct pci_ops *ops, void *sysdata); -struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, void *sysdata); struct pci_bus *pci_create_root_bus(struct device *parent, int bus, struct pci_ops *ops, void *sysdata, struct list_head *resources);