From patchwork Fri Sep 12 18:03:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 4897401 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C7BA39F430 for ; Fri, 12 Sep 2014 18:01:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 483E520211 for ; Fri, 12 Sep 2014 18:05:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1CEF920254 for ; Fri, 12 Sep 2014 18:05:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752351AbaILSDq (ORCPT ); Fri, 12 Sep 2014 14:03:46 -0400 Received: from mail-ig0-f174.google.com ([209.85.213.174]:62501 "EHLO mail-ig0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752338AbaILSDo (ORCPT ); Fri, 12 Sep 2014 14:03:44 -0400 Received: by mail-ig0-f174.google.com with SMTP id h18so958961igc.13 for ; Fri, 12 Sep 2014 11:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=1sNpzpJwRtQ4jcHlLTCiT9nKPhJNdbuxBaMBwO69Otc=; b=S+pmvrjMGGxQZCefIWwMnNVBZIfqvx7HCGQpE+RcG1D85VJAwK0qOxQ70f4OFxya2J gIYl3+rmMFrSxSe7bo8BshrKHWYCjjLayfIX2SMeE5E/g53TzlZQJQ1oCSXqO0bOe+AN b33RAo/ZwKJn+TNYd5kJF42LIKwxZBeju0VFxdPymQ1Tr3VWhYS61Mp+QWdwhAKOVGhi jDlnDGuNrOBHHOqnOGifYYYFEV4/iPR53p4kQ2mMqWMwjddj38b04OzY5rzJ0pNMUPDM XSxx2P0fQ/bXZAIYcMAx7kuTYWL4PKmk6ocihlxzP93km+ISehaOxLgCQw/D/VboSsxs ZVcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=1sNpzpJwRtQ4jcHlLTCiT9nKPhJNdbuxBaMBwO69Otc=; b=CBL/m9/rtxp+Z6hqAB4dd3eX1fWCQCoo+IDsAO675lq9EvPb0iGQRXiLpLT1tG645O 2mkx4Pk89de03Sz9gGY6i3gjxFdNOI/WKO/GVqPLTB9MlY/VbbfyiVZ4EnQsOTkxjBA2 34cEJSokTkn7g39EYqmDbYaFNHuicDI7e+FufSOAYA4vqbUNFbzA+mntuM25KczBhW41 YzcLRqTzLNCN0tlGWKzJPZzG/iEnNG2xzafa7ZBetOdDstR+R111ZxRRE+DQ+g/9lbkI m85/qHN3K/eVBjPeJ9dSbrP5QFRAovBiQcxYl1pM+60OU6iHvXQluyg5M3KC85BG60We QY0g== X-Gm-Message-State: ALoCoQmBJlfIkez5uJmdBq/7hA/GWoJaZvPR+ZpjI+8zOufKCImhZy3eYZ7pEHZFXZjirH3VY0Zz X-Received: by 10.42.24.11 with SMTP id u11mr9137668icb.44.1410545023143; Fri, 12 Sep 2014 11:03:43 -0700 (PDT) Received: from localhost ([172.16.49.108]) by mx.google.com with ESMTPSA id or4sm2080173igb.18.2014.09.12.11.03.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 12 Sep 2014 11:03:42 -0700 (PDT) Subject: [PATCH v1 08/13] PCI: Remove unused pci_configure_slot() To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: Rajat Jain , Linus Torvalds , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Yinghai Lu Date: Fri, 12 Sep 2014 12:03:41 -0600 Message-ID: <20140912180341.1630.25395.stgit@bhelgaas-glaptop2.roam.corp.google.com> In-Reply-To: <20140912180141.1630.17120.stgit@bhelgaas-glaptop2.roam.corp.google.com> References: <20140912180141.1630.17120.stgit@bhelgaas-glaptop2.roam.corp.google.com> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, 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 All pci_configure_slot() uses have been removed, so remove the definition as well. Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 27 --------------------------- include/linux/pci_hotplug.h | 2 -- 2 files changed, 29 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 93d2b41163fa..4b3b29bc7a82 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1358,33 +1358,6 @@ static void program_hpp_type2(struct pci_dev *dev, struct hpp_type2 *hpp) */ } -void pci_configure_slot(struct pci_dev *dev) -{ - struct pci_dev *cdev; - struct hotplug_params hpp; - - if (!(dev->hdr_type == PCI_HEADER_TYPE_NORMAL || - (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE && - (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI))) - return; - - pcie_bus_configure_settings(dev->bus); - - memset(&hpp, 0, sizeof(hpp)); - pci_get_hp_params(dev, &hpp); - - program_hpp_type2(dev, hpp.t2); - program_hpp_type1(dev, hpp.t1); - program_hpp_type0(dev, hpp.t0); - - if (dev->subordinate) { - list_for_each_entry(cdev, &dev->subordinate->devices, - bus_list) - pci_configure_slot(cdev); - } -} -EXPORT_SYMBOL_GPL(pci_configure_slot); - static void pci_configure_device(struct pci_dev *dev) { struct hotplug_params hpp; diff --git a/include/linux/pci_hotplug.h b/include/linux/pci_hotplug.h index 5f2e559af6b0..2706ee9a4327 100644 --- a/include/linux/pci_hotplug.h +++ b/include/linux/pci_hotplug.h @@ -187,6 +187,4 @@ static inline int pci_get_hp_params(struct pci_dev *dev, return -ENODEV; } #endif - -void pci_configure_slot(struct pci_dev *dev); #endif