From patchwork Mon May 13 16:08:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 2559351 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 068FADF2E5 for ; Mon, 13 May 2013 16:11:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754946Ab3EMQLh (ORCPT ); Mon, 13 May 2013 12:11:37 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:60344 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753799Ab3EMQJL (ORCPT ); Mon, 13 May 2013 12:09:11 -0400 Received: by mail-pa0-f42.google.com with SMTP id bj3so4761330pad.1 for ; Mon, 13 May 2013 09:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=SdLrJ/EaGrbfh9XN/lgTzYc86rx80iWOunPhvrQobqE=; b=0PCkyqv09CM7ImlqzxDqqUZZa5N2fIeAnwUbTSX0Y/mstKpPJggB5jdaJd0MxrzhRU kypxvDwDE46G22ZDQ14sUZCOcRwG6RxoVESTMvGhL+zVRvLbRi0DDj0S4cndgXK5B+lx X+wY9BHDlNhj2bYl4R5bAGuxz33X+AdLeu1h70Omcd9j4v9IImhOQ9hpAK/msjqTuioN kRs94ZTP57SXWaqQ2FmhGlYS6FaghtQ5Iy3LbANe0XcXFFYMFXPnKZsJa1XUjC+VxOVY 8TU20sHRYDg+jI3L47r3fNyzKOtg3T5/MqciO9XYkjbFJaZfhYUZb96h0EbLTmSp0JlM 9y/w== X-Received: by 10.68.212.72 with SMTP id ni8mr6603862pbc.114.1368461351331; Mon, 13 May 2013 09:09:11 -0700 (PDT) Received: from localhost.localdomain ([120.196.98.100]) by mx.google.com with ESMTPSA id nt2sm14580193pbc.17.2013.05.13.09.09.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 May 2013 09:09:10 -0700 (PDT) From: Jiang Liu To: Bjorn Helgaas , Yinghai Lu Cc: Jiang Liu , "Rafael J . Wysocki" , Greg Kroah-Hartman , Gu Zheng , Toshi Kani , Myron Stowe , Yijing Wang , Jiang Liu , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Metcalf , Thierry Reding Subject: [PATCH v2, part 1 4/9] PCI: mark pci_scan_bus_parented() as __deprecated Date: Tue, 14 May 2013 00:08:28 +0800 Message-Id: <1368461313-4371-5-git-send-email-jiang.liu@huawei.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1368461313-4371-1-git-send-email-jiang.liu@huawei.com> References: <1368461313-4371-1-git-send-email-jiang.liu@huawei.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Mark pci_scan_bus_parented() as __deprecated and clean up outdated comments. Signed-off-by: Jiang Liu Cc: Chris Metcalf Cc: Greg Kroah-Hartman Cc: Thierry Reding Cc: linux-kernel@vger.kernel.org Cc: linux-pci@vger.kernel.org --- arch/tile/kernel/pci.c | 3 --- include/linux/pci.h | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c index 67237d3..936e087 100644 --- a/arch/tile/kernel/pci.c +++ b/arch/tile/kernel/pci.c @@ -309,9 +309,6 @@ int __init pcibios_init(void) * * It reads the PCI tree for this bus into the Linux * data structures. - * - * This is inlined in linux/pci.h and calls into - * pci_scan_bus_parented() in probe.c. */ pci_add_resource(&resources, &ioport_resource); pci_add_resource(&resources, &iomem_resource); diff --git a/include/linux/pci.h b/include/linux/pci.h index 68beb11..cc4ce27 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -720,8 +720,8 @@ void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, void pcibios_scan_specific_bus(int busn); 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 * __deprecated 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,