* [PATCH] PCI: remove obsolete "is_pcie" from pci_dev structure
@ 2013-09-03 2:02 Yijing Wang
2013-09-06 22:59 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Yijing Wang @ 2013-09-03 2:02 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: linux-pci, Yijing Wang, Hanjun Guo
No one uses "is_pcie" now, remove this obsolete member.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
---
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;
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] PCI: remove obsolete "is_pcie" from pci_dev structure
2013-09-03 2:02 [PATCH] PCI: remove obsolete "is_pcie" from pci_dev structure Yijing Wang
@ 2013-09-06 22:59 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2013-09-06 22:59 UTC (permalink / raw)
To: Yijing Wang; +Cc: linux-pci, Hanjun Guo
On Tue, Sep 03, 2013 at 10:02:09AM +0800, Yijing Wang wrote:
> No one uses "is_pcie" now, remove this obsolete member.
>
> Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Applied to my pci/misc branch for v3.13. Thanks!
> ---
> 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;
> --
> 1.7.1
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-06 22:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 2:02 [PATCH] PCI: remove obsolete "is_pcie" from pci_dev structure Yijing Wang
2013-09-06 22:59 ` Bjorn Helgaas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.