From patchwork Tue Sep 3 02:02:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijing Wang X-Patchwork-Id: 272099 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 80DB62C00AC for ; Tue, 3 Sep 2013 12:02:50 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756821Ab3ICCCm (ORCPT ); Mon, 2 Sep 2013 22:02:42 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:32793 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754103Ab3ICCCm (ORCPT ); Mon, 2 Sep 2013 22:02:42 -0400 Received: from 172.24.2.119 (EHLO szxeml206-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id BHQ11968; Tue, 03 Sep 2013 10:02:40 +0800 (CST) Received: from SZXEML406-HUB.china.huawei.com (10.82.67.93) by szxeml206-edg.china.huawei.com (172.24.2.59) with Microsoft SMTP Server (TLS) id 14.1.323.7; Tue, 3 Sep 2013 10:02:23 +0800 Received: from localhost (10.135.76.69) by szxeml406-hub.china.huawei.com (10.82.67.93) with Microsoft SMTP Server id 14.1.323.7; Tue, 3 Sep 2013 10:02:14 +0800 From: Yijing Wang To: Bjorn Helgaas CC: , Yijing Wang , Hanjun Guo Subject: [PATCH] PCI: remove obsolete "is_pcie" from pci_dev structure Date: Tue, 3 Sep 2013 10:02:09 +0800 Message-ID: <1378173729-20700-1-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.11.msysgit.1 MIME-Version: 1.0 X-Originating-IP: [10.135.76.69] X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org No one uses "is_pcie" now, remove this obsolete member. Signed-off-by: Yijing Wang --- drivers/pci/probe.c | 1 - include/linux/pci.h | 2 -- 2 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index eeb50bd..70f6e75 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -983,7 +983,6 @@ void set_pcie_port_type(struct pci_dev *pdev) pos = pci_find_capability(pdev, PCI_CAP_ID_EXP); if (!pos) return; - pdev->is_pcie = 1; pdev->pcie_cap = pos; pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, ®16); pdev->pcie_flags_reg = reg16; diff --git a/include/linux/pci.h b/include/linux/pci.h index 186540d..be06125 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -317,8 +317,6 @@ struct pci_dev { unsigned int msix_enabled:1; unsigned int ari_enabled:1; /* ARI forwarding */ unsigned int is_managed:1; - unsigned int is_pcie:1; /* Obsolete. Will be removed. - Use pci_is_pcie() instead */ unsigned int needs_freset:1; /* Dev requires fundamental reset */ unsigned int state_saved:1; unsigned int is_physfn:1;