From patchwork Thu Jun 20 17:01:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 2757351 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 919DEC0AB1 for ; Thu, 20 Jun 2013 17:02:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B05420418 for ; Thu, 20 Jun 2013 17:02:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8E53B20425 for ; Thu, 20 Jun 2013 17:02:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161215Ab3FTRBr (ORCPT ); Thu, 20 Jun 2013 13:01:47 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:47311 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161213Ab3FTRBp (ORCPT ); Thu, 20 Jun 2013 13:01:45 -0400 Received: by mail-pd0-f171.google.com with SMTP id y14so6476681pdi.30 for ; Thu, 20 Jun 2013 10:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=7Ns9AJbbY8tYscjTwU8NvF1dQqPNK7jYkizdmytSTPo=; b=yiETLcYWFdKqfCyxr3ng6F0Xep9jvRWIqtuJEhezUySIrgwag6Bq+Le148xpLnHsvN N02mYdZayi1sE3rxFe17ks4FZNq4gY8vkDQglOOtoyeV9HsTyDVOd2CkRnjO88hNajdA w1G42QjOCCSXpFRYm3SWPF1gTpcO5ispMHiHH5LF5nE3472ojK5V7WiOXRTdhezcif7o K/fI7wXf4vf6D8oJOCccBZgCuIhMDcQA39BTZ3G82jx8caSJBFce7L+Sf+ENejIdVdCG B/8G+ItjnumbGJDL9UIlg8+dQRa+OfuAyynawwlVAl5pDnfL2HV1vNTd7M755XtlpQq+ +w/g== X-Received: by 10.68.76.67 with SMTP id i3mr8438497pbw.20.1371747705242; Thu, 20 Jun 2013 10:01:45 -0700 (PDT) Received: from localhost.localdomain ([120.196.98.106]) by mx.google.com with ESMTPSA id vz8sm1512876pac.20.2013.06.20.10.01.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Jun 2013 10:01:44 -0700 (PDT) From: Jiang Liu To: Bjorn Helgaas , Konrad Rzeszutek Wilk , Jeremy Fitzhardinge Cc: liuj97@gmail.com, Jiang Liu , Yijing Wang , xen-devel@lists.xensource.com, virtualization@lists.linux-foundation.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Metcalf , Greg Kroah-Hartman , Thierry Reding Subject: [PATCH 3/3] PCI: mark pci_scan_bus_parented() as __deprecated Date: Fri, 21 Jun 2013 01:01:05 +0800 Message-Id: <1371747665-12768-4-git-send-email-liuj97@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1371747665-12768-1-git-send-email-liuj97@gmail.com> References: <1371747665-12768-1-git-send-email-liuj97@gmail.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jiang Liu 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 f1229c7..b72d275 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,